[PyKDE] QThread, signals and slots
Ole Morten Grodås
grodaas at gmail.com
Wed Jan 10 20:32:45 GMT 2007
I have a problem with passing signals a cross threads.
I was under the impression that when using Qt.QueuedConnection the slot
would always be executed in the thread that the receiver object lived. But
when I created this test application I does not seem to be doing that. Any
suggestions on what the error might be?
Btw, I'm working on a tutorial on using signal and slots with python over at
Feel free to improve it. Feedback and suggestions are also most welcome.
English is not my native language so I guess there are plenty of mistakes :/
from PyQt4.QtGui import *
from PyQt4.QtCore import *
for i in range (1,10):
This code outputs:
QObject: Cannot create children for a parent that is in a different thread.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt