I have a Qt application with this kind of main()...
int main(int argc, char *argv[]) { QApplication app(argc, argv); MainWindow mainWin; ... A sep
You can do it in the following order:
QApplication app(argc, argv); Mainwinwdow mainWin; QThread yourThread; //connect the signals from the thread to the mainWin here mainWin.Init(); mainWin.show(); yourThread.start(); return app.exec();