creating QApplication in a different thread
问题 I'm trying to create QApplication in a different thread, but found 2 main problems: 1- I can't interact with GUI 2- some warnings: WARNING: QApplication was not created in the main() thread. QObject::startTimer: timers cannot be started from another thread //happens when resizing widget QObject::killTimer: timers cannot be stopped from another thread here is the full code: (it may has some memory leaks but for testing purposes it fails) //main.cpp #include <QCoreApplication> #include "cthread