#include <AsyncQtApplication.h>
Inheritance diagram for Async::QtApplication:

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.
#include <AsyncQtApplication.h> #include <qpushbutton.h> using namespace Async; int main(int argc, char **argv) { QtApplication app(argc, argv); QPushButton hello("Hello, Async::QtApplication", 0); QObject::connect(&hello, SIGNAL(clicked()), &app, SLOT(quit())); app.setMainWidget(&hello); hello.show(); app.exec(); }
Definition at line 151 of file AsyncQtApplication.h.
|
||||||||||||
|
Constructor. The two arguments typically are the arguments given to the main function.
|
|
|
Destructor.
|
|
|
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. |
|
|
Exit the application main loop. This function should be called to exit the application core main loop. Implements Async::Application. |
1.4.4