Форум сайта python.su
В главном потоке на инициализации формы делаю так: Registry.form = self
В других потоках при использовании Registry.form.log('hello') вылазиет это:
QObject::connect: Cannot queue arguments of type 'QTextBlock'
(Make sure 'QTextBlock' is registered using qRegisterMetaType().)
QObject::connect: Cannot queue arguments of type 'QTextCursor'
(Make sure 'QTextCursor' is registered using qRegisterMetaType().)
Отредактировано (Янв. 21, 2010 05:35:39)
Офлайн
1) int QThread.exec_ (self)
Enters the event loop and waits until exit() is called, returning the value that was passed to exit(). The value returned is 0 if exit() is called via quit().
It is necessary to call this function to start event handling.
Офлайн
2) см. на QThreadPool
Офлайн