- Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathmain.cpp
More file actions
Latest commit
24 lines (18 loc) · 485 Bytes
/
Copy pathmain.cpp
File metadata and controls
24 lines (18 loc) · 485 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include"frmmain.h"
#include<QApplication>
#include"api/appinit.h"
#include"api/myhelper.h"
intmain(int argc, char *argv[])
{
QApplication a(argc, argv);
#if (QT_VERSION >= QT_VERSION_CHECK(5,6,0))
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
a.setApplicationName(App::AppName);
a.setApplicationVersion("1.0");
a.setWindowIcon(QIcon(":/main.ico"));
AppInit::Instance()->Start();
frmMain w;
w.show();
return a.exec();
}