[Qt-interest] close app before exec()

Martin Gebert martin.gebert at alpha-bit.de
Wed Jul 1 11:24:26 CEST 2009


>    2. Set a flag (boolean member) in your constructor on success of the
>       initialization, reimplement QMainWindow::exec() for your main
>       window class and return with the appropriate return code if the
>       initialization failed.
>   

Or, better yet, delay the part of the initialization that may fail and
move it into exec() at all.

Martin



More information about the Qt-interest-old mailing list