#include #include "MainWidget.h" int main(int argc, char *argv[]) { QApplication a(argc, argv); #ifdef _WIN32 QFont font("Microsoft YaHei", 9); a.setFont(font); //a.setStyle("fusion"); #endif #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif //a.setStyle("windows"); MainWidget w; w.set_work_exe(argv[0]); w.show(); return a.exec(); }