You can't do GUI operations from a thread which does not own QApplication object.
And looking at your code... why do you need that thread if you put your main application thread to sleep after you spawn it?
I'm talking about this:
MyMDIMainWindowThread* mainthread = new MyMDIMainWindowThread();
mainthread->start();
mainthread->wait();
return a.exec();
QApplication a(argc,argv);
MyMDIMainWindowThread* mainthread = new MyMDIMainWindowThread();
mainthread->start();
mainthread->wait();
return a.exec();
To copy to clipboard, switch view to plain text mode
Bookmarks