mirror of
https://github.com/YikeStone/Qt-Advent.git
synced 2025-08-02 18:04:08 +05:30
19 lines
368 B
C++
19 lines
368 B
C++
#include "mainwindow.h"
|
|
#include <QApplication>
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
//MainWindow w;
|
|
MainWindow t;
|
|
t.show();
|
|
|
|
int c=a.exec();
|
|
//qDebug()<<"close";
|
|
t.serial->disconnect();
|
|
t.serial->close();
|
|
//QThread::currentThread()->usleep(1);
|
|
|
|
//QThread::currentThread()->msleep(10);
|
|
return c;
|
|
}
|