[Qt-interest] close app before exec()

OS Prog osprog at gmail.com
Wed Jul 1 10:57:31 CEST 2009


Hi,

I have QMainWindow application. In the QMainWindow constructor I check for
conditions and if they are not met I want to exit from the application. The
close(), QApplication::exit(), and so on doesn't work, because they are
before application.exec().

In main.cpp I have
...
MainWindow w;   <--- Here I check for conditions...

w.show();

return a.exec();

...

Regards,
Nikolay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090701/e493a7b3/attachment.html 


More information about the Qt-interest-old mailing list