Hi Jimmy,
Try the following:
Qt Code:
int main(int argc, char* argv[]){ MainWindow *dialog = new MainWindow; return app.exec(); }To copy to clipboard, switch view to plain text mode
Hi Jimmy,
Try the following:
Qt Code:
int main(int argc, char* argv[]){ MainWindow *dialog = new MainWindow; return app.exec(); }To copy to clipboard, switch view to plain text mode
One second is long, everything longer than two seconds is definitely too long.
hakermania (27th August 2010)
Thanks for this reply, but if you only add this, then your app doesn't exits at all!
You have to add QApplication::setQuitOnLastWindowClosed(1); at the CloseEvent
Anyway thx for the reply, very helpful!![]()
Bookmarks