Dear experts,


I am working on one project where I use Qt for GUI development. Qt is running at the main thread. I would like to confirm the clean exit of the QApplication. This is required to do some post application exit operation such as running exit handlers.

When the application needs to exited I use,

qApp->quit();

to confirm the successful exit of the QApplication, I use

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?