AsyncQtApplication_demo.cpp

An example of how to use the Async::QtApplication class

#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();
}

Generated on Sun May 31 07:02:53 2009 for Async by  doxygen 1.5.7.1