-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
28 lines (23 loc) · 896 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "mainwindow.h"
#include <QApplication>
#include <QThreadPool>
#include "FrameSheet.h"
#include <QMetaType>
#include <QFile>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
a.setWindowIcon(QIcon("C:/Users/WhiteKite2020/Desktop/AutoTransMonitor/other/main.ico"));
a.setFont(QFont("Microsoft Yahei", 9));
//a.setWindowIcon(QIcon(":/main.ico"));
//注册传输数据结构体
qRegisterMetaType<speedUpdateFormat>("speedUpdateFormat");
qRegisterMetaType<feedbackData>("feedbackData");
qRegisterMetaType<CASREPORTFRAME>("CASREPORTFRAME");
qRegisterMetaType<CASREPORTSDRAMPACK>("CASREPORTSDRAMPACK");
MainWindow w;
w.setWindowTitle("龙门负载控制子系统上位机");
w.setWindowFlags(Qt::Widget | Qt::WindowMinMaxButtonsHint | Qt::WindowCloseButtonHint);
w.show();
return a.exec();
}