[Interest] Event handling for QObjects created before QApplication

Dmitrii Volosnykh dmitrii.volosnykh at gmail.com
Mon Sep 22 10:56:56 CEST 2014


Thank you for your answers and recommendations. I never create QObjects
before QCoreApplication, so don't worry. Just was re-reading docs and was
confused by that part, especially be the word "posted" since
QCoreApplication::postEvent() supposed to put event in the queue which is
not handled.

2014-09-22 4:24 GMT+04:00 Dmitrii Volosnykh <dmitrii.volosnykh at gmail.com>:

> Threads and QObjects <http://qt-project.org/doc/qt-5/threads-qobject.html> tutorial
> says:
>
>> Note that for QObjects that are created before QApplication,
>> QObject::thread() returns zero. This means that the main thread will only
>> handle posted events for these objects; other event processing is not done
>> at all for objects with no thread.
>
>
> Could someone elaborate on this, please? The most confusing part is "main
> thread will only handle posted events for these objects".
>
> Thanks in advance.
>
> Dmitrii.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140922/d077aca4/attachment.html>


More information about the Interest mailing list