[Qt-interest] Qt::AutoConnection fails

Stefan Bisplinghoff bisplinghoff at hia.rwth-aachen.de
Tue Apr 14 15:54:38 CEST 2009


Oliver.Knoll at comit.ch schrieb:
> In order for queued connections to work the *receiving* thread (in your example that would be the "main" thread - but make sure your real code also behaves like this) needs to have an event queue running: http://doc.trolltech.com/4.5/qthread.html#exec

Actually my worker thread has no event queue as it really doesn't need one.
But just to be sure I replaced the sleep command in run() with an
equivalent QTimer structure and got the same results: timeout() inside
the worker thread works fine, but the slot for the dataChanged signal is
not called.

Regards,
 Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5713 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090414/45fd9858/attachment.bin 


More information about the Qt-interest-old mailing list