[Interest] running Qt main event loop in secondary thread

Thiago Macieira thiago.macieira at intel.com
Tue Mar 28 17:03:10 CEST 2023

On Tuesday, 28 March 2023 06:16:52 PDT Stefan Seefeld wrote:
> First I see
> the error / warning message
>   `WARNING: QApplication was not created in the main() thread.`
> the main window appears, but isn't fully constructed and it doesn't look
> like the event loop is ever started. (The window's content isn't updated,
> no button appears, and the app isn't receiving input events.)
> What am I doing wrong ?

You must create the QCoreApplication (including QApplication) in the thread 
that the first QObject is created in. That warning message tells you that you 

Thiago Macieira - thiago.macieira (AT) intel.com
  Cloud Software Architect - Intel DCAI Cloud Engineering
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5152 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20230328/9eee69ed/attachment.bin>

More information about the Interest mailing list