I want to use qApp->exit(0) or qApp->quit() in order to close my application while being in a QDialog (e.g. a button in a dialog saying "Exit").
qApp->exit and qApp->quit do the job but, as I noticed they don't go through the QClose Event. Is there a way to go through the QClose Event of the main application and not through the dialog's Close Event?