Toolbox Qt
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
tbq::CoreHelper Class Reference

Class containing multiple helpful methods. More...

Static Public Member Functions

static void quitApplication (const QString &reason=QString(), QWidget *parent=nullptr)
 Use to quit application.
 

Detailed Description

Class containing multiple helpful methods.

This class group multiple methods that can't be associated to specific core part, this is only utilities.

Member Function Documentation

◆ quitApplication()

void tbq::CoreHelper::quitApplication ( const QString &  reason = QString(),
QWidget *  parent = nullptr 
)
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.

Parameters
[in]reasonReason for the application to quit.
This will appear in a QMessageBox and be logged.
[in]parentParent widget.
This value can be nullptr.

The documentation for this class was generated from the following files: