[Qt-interest] Exiting before the main event loop
Pete Black
theblackpeter at gmail.com
Mon Feb 23 03:56:47 CET 2009
Rohan McGovern wrote:
> On Monday 23 February 2009, ext Pete Black wrote:
>> 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.
>
> Hi,
>
> Just don't call app.exec() if you don't want to execute the
> application.
>
Yeah, was hoping there was a way, but I probably have to do that. Which
means refactoring. Boxed myself in a bit by parsing some command line
parameters from the app's constructor and I need to be able to quit from
there.
Thanks,
Pete
More information about the Qt-interest-old
mailing list