2024-05-15 08:34:54 +08:00
|
|
|
#include <QApplication>
|
|
|
|
|
2024-09-14 00:02:48 +08:00
|
|
|
#include "MainWidget.h"
|
|
|
|
|
2024-05-15 08:34:54 +08:00
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
2024-05-15 10:59:43 +08:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
2024-07-28 10:27:54 +08:00
|
|
|
QFont font("Microsoft YaHei", 9);
|
2024-05-15 10:59:43 +08:00
|
|
|
a.setFont(font);
|
2024-07-14 22:39:43 +08:00
|
|
|
a.setStyle("fusion");
|
2024-05-15 10:59:43 +08:00
|
|
|
#endif
|
|
|
|
|
2024-09-14 09:08:24 +08:00
|
|
|
#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;
|
2024-05-15 10:59:43 +08:00
|
|
|
w.set_work_exe(argv[0]);
|
2024-05-15 08:34:54 +08:00
|
|
|
w.show();
|
|
|
|
return a.exec();
|
|
|
|
}
|