I am working on a project which uses Qt for GUI development. Qt event loop is started in the main thread. But I have requirement to do some cleanup activities after the QApplication exits.
So I have used qApp->quit() for exiting the application and to confirm the successful exit of the QApplication, I am relying on the return value of the qApp->closingDown() as follows
if ( true == qApp->closingDown())
{
//Successfull exit of the QApplication. Do post exit operations
}
Questions: a. Does qApp->quit() immediately makes qApp->closingDown() function to return the true value. b. Are there any other way to confirm the successful exit of the QApplication?