[Qt-interest] Exiting before the main event loop
Pete Black
theblackpeter at gmail.com
Mon Feb 23 03:36:24 CET 2009
Hi,
Anyone know a good way of exiting an application before the main event
loop has been entered? That is before app.exec() has been called, but
withing the app object itself.
So far I've been using qFatal(), however that prints out an annoying
"Aborted" at the end.
I've tried both QCoreApplication::exit() and QCoreApplication::quit()
(which is the same as exit(0)) to no avail. As the documentation for
QCoreApplication::exit() says says: "If the event loop is not running,
this function does nothing."
Thanks,
Pete
More information about the Qt-interest-old
mailing list