[PyQt] Problem regarding setting text of QTextEdit in a separate thread

David Boddie david at boddie.org.uk
Tue Jul 7 21:17:13 BST 2009


On Tue Jul 7 20:58:46 BST 2009, Shine Jose wrote:

> Searching on the net made me realize that setting the text in a separate
> thread is not supported in pyQT. Is there any work-around for this problem?
> I request you to suggest me any alternative method to find a solution for
> my problem.

That's correct. You need to connect a signal in your worker thread to the
QTextEdit.setText() slot in your main thread. There's an example on the
Wiki that you might find useful:

  http://www.diotavelli.net/PyQtWiki/Threading,_Signals_and_Slots

Good luck!

David


More information about the PyQt mailing list