Quote Originally Posted by Hiker Hauk View Post
void QCoreApplication::exit ( int returnCode = 0 ) [static]

Tells the application to exit with a return code.

After this function has been called, the application leaves the main event loop and returns from the call to exec(). The exec() function returns returnCode. If the event loop is not running, this function does nothing.


If you meant to call the exit() in the standard C library, type std::exit.
Huh? No, for sake of simplicity I just didn't type QCoreApplication::exit() everytime I referred to it. The code has QCoreApplication::exit(1); in the constructor, but the application does not exit. I did not want to call std::exit. Thanks for the help, but the application still does not exit the event loop.