Go to the source code of this file.
Functions | |
| int | QtTesting () |
| int QtTesting | ( | ) |
Definition at line 23 of file QtTesting.cpp.
References EXIT_SUCCESS.
Referenced by main().
{
//QtTestingClass *qttestingclass = new QtTestingClass;
std::cout << "Testing ... " << std::endl;
QTimer *timer = new QTimer( QApplication::instance() );
timer->setSingleShot(true);
QObject::connect( timer, SIGNAL(timeout()), QApplication::instance(), SLOT(quit()) );
timer->start( 2000 ); // 2 seconds single-shot timer
QApplication::instance()->exec();
return EXIT_SUCCESS;
}
1.7.2