2024-05-15 08:34:54 +08:00
|
|
|
#include "MainWidget.h"
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
2024-05-15 10:59:43 +08:00
|
|
|
|
|
|
|
#ifdef _WIN32
|
2024-05-15 17:34:07 +08:00
|
|
|
QFont font("Microsoft YaHei", 9);
|
2024-05-15 10:59:43 +08:00
|
|
|
a.setFont(font);
|
2024-05-20 08:18:13 +08:00
|
|
|
//a.setStyle("fusion");
|
2024-05-15 10:59:43 +08:00
|
|
|
#endif
|
|
|
|
|
2024-05-29 10:06:28 +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();
|
|
|
|
}
|