Toolbox Qt
|
Class containing multiple helpful methods. More...
Static Public Member Functions | |
static void | quitApplication (const QString &reason=QString(), QWidget *parent=nullptr) |
Use to quit application. | |
Class containing multiple helpful methods.
This class group multiple methods that can't be associated to specific core part, this is only utilities.
|
static |
Use to quit application.
To properly quit application, we have to queue "quit" event, otherwise nothing will be performed (like when quit()
is called from a constructor for example).
This method was implemented to properly take care of those edge cases : so it can be called anywhere, quit event will be made.
[in] | reason | Reason for the application to quit. This will appear in a QMessageBox and be logged. |
[in] | parent | Parent widget. This value can be nullptr . |