[PyQt] QObject: Cannot create children for a parent that is in
a different thread. How to edit another threads objects?
Andreas Pakulat
apaku at gmx.de
Mon Sep 14 19:33:06 BST 2009
On 14.09.09 22:50:04, Soumen banerjee wrote:
> Hello,
> I have a program with the following structure
> 1st thread which reads lines from a file
> 2nd a gui thread which contains(among other things) a textEdit
> As the line is read from the file I want to display it in the text
> box. When I use the settext method of the textedit object from the 1st
> thread, it comes up with an error:
Make yourself familiar with multi-thread programming. In particular look
into Qt's queued-connect-signals and/or how to post custom events. Look
at the threads and network examples.
Andreas
--
Today is the first day of the rest of the mess.
More information about the PyQt
mailing list