OneLevelXmlOpr/main.cpp

25 lines
454 B
C++
Raw Normal View History

2024-05-15 08:34:54 +08:00
#include <QApplication>
#include "MainWidget.h"
2024-05-15 08:34:54 +08:00
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
#ifdef _WIN32
2024-07-28 10:27:54 +08:00
QFont font("Microsoft YaHei", 9);
a.setFont(font);
2024-07-14 22:39:43 +08:00
a.setStyle("fusion");
#endif
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
2024-09-14 09:38:05 +08:00
a.setStyle("windows");
2024-05-15 08:34:54 +08:00
MainWidget w;
w.set_work_exe(argv[0]);
2024-05-15 08:34:54 +08:00
w.show();
return a.exec();
}