Async 1.8.0
|
An application class for writing GUI applications in Qt. More...
#include <AsyncQtApplication.h>
Public Slots | |
void | quit (void) |
Exit the application main loop. | |
Public Member Functions | |
QtApplication (int &argc, char **argv) | |
Constructor. | |
virtual | ~QtApplication (void) |
Destructor. | |
void | exec (void) |
Execute the application main loop. | |
![]() | |
Application (void) | |
Default constructor. | |
virtual | ~Application (void) |
Destructor. | |
virtual void | quit (void)=0 |
Exit the application main loop. | |
void | runTask (sigc::slot< void > task) |
Run a task from the Async main loop. | |
Additional Inherited Members | |
![]() | |
static Application & | app (void) |
Get the one and only application instance. | |
![]() | |
void | clearTasks (void) |
An application class for writing GUI applications in Qt.
This class is used when writing Qt applications. It should be one of the first things done in the main function of your application. Use the Async::QtApplication class in place of the QApplication class.
In the application you do not have to use the Async classes for timers and file descriptor watches. It is perfecly legal to use the Qt variants (QTimer and QSocketNotifier). You can mix them as much as you like.
Definition at line 157 of file AsyncQtApplication.h.
Async::QtApplication::QtApplication | ( | int & | argc, |
char ** | argv ) |
Constructor.
The two arguments typically are the arguments given to the main function.
argc | The number of command line arguments + 1 |
argv | An array containing the commandline arguments |
|
virtual |
Destructor.
|
virtual |
Execute the application main loop.
When this member function is called the application core will enter the main loop. It will not exit from this loop until the Async::Application::quit method is called.
Implements Async::Application.
|
slot |
Exit the application main loop.
This function should be called to exit the application core main loop.