[Qt-interest] Exiting before the main event loop
Pete Black
theblackpeter at gmail.com
Mon Feb 23 20:21:26 CET 2009
Pete Black wrote:
> Oliver.Knoll at comit.ch wrote:
>> Pete Black wrote on Monday, February 23, 2009 3:36 AM:
>>
>>> ...
>>> 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."
>> Uhm... what's wrong with the C standard library function exit()? Why don't you use that one?
>>
>> Cheers, Oliver
>
> Thank you, that works as it should now. I had #include <stdlib.h> a
> little to far down and was getting a "Type label ‘std’ defined but not
> used" warning.
>
> To bad one has to reach outside of Qt for this one.
>
> Thanks,
> Pete
>
Sorry meant <cstdlib>.
Pete
More information about the Qt-interest-old
mailing list