[Development] Trigger Qt event loop from external message loop

Thiago Macieira thiago.macieira at intel.com
Sat Dec 14 19:23:23 CET 2013


On sábado, 14 de dezembro de 2013 12:42:32, Roland Winklmeier wrote:
> n qthread_win.cpp
> QThreadPrivate::start ->
> void QThreadPrivate::createEventDispatcher(QThreadData *data)
> {
>     QEventDispatcherWin32 *theEventDispatcher = new QEventDispatcherWin32;
>     data->eventDispatcher.storeRelease(theEventDispatcher);
>     theEventDispatcher->startingUp();
> }

You must not use QThread.

You need to start your thread before using any QObject-derived classes. Once 
you're there, instantiate the QApplication.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131214/654689ea/attachment.sig>


More information about the Development mailing list