File indexing completed on 2024-05-12 05:40:53

0001 #include "readersender.h"
0002 #include <QCoreApplication>
0003 #include <QTimer>
0004 
0005 int main(int argc, char** argv)
0006 {
0007     QCoreApplication app(argc, argv);
0008 
0009     ReaderSender reader;
0010     QObject::connect(&reader, SIGNAL(finish()), &app, SLOT(quit()), Qt::QueuedConnection);
0011     QTimer::singleShot(1000, &reader, SLOT(readFile()));
0012 
0013     return app.exec();
0014 }