QThreadPerversions/main.cpp

16 lines
304 B
C++
Raw Normal View History

2018-04-12 21:32:28 +00:00
#include <QCoreApplication>
#include <QTimer>
#include "QMain.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QMain shell;
QObject::connect(&shell, SIGNAL(closeProgram()), &a, SLOT(quit()));
QTimer::singleShot(0,&shell,SLOT(beginSort()));
return a.exec();
}