A warning may use better wording - this is not exactly a QThread problem, it is an event loop problem. QThread automatically installs one for you, but here you only have the main thread.
:
2. unit test. , unit test QApplication, , QTEST_APPLESS_MAIN. :
main(), TestClass.
QTEST_MAIN(), QApplication . GUI.
.
, , , :
QTEST_APPLESS_MAIN(ExampleTest);
:
QTEST_MAIN(ExampleTest);
... .