blob: 7022866a27e6cd102b532a8216da1ae8e360d1b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <QCoreApplication>
#include <QObject>
#include <QTimer>
#include <qtbot.h>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QtBot qtbot;
QObject::connect(&qtbot, SIGNAL(done()), &a, SLOT(quit()), Qt::QueuedConnection);
QTimer::singleShot(0, &qtbot, SLOT(setup()));
return a.exec();
}
|