theme:设置为默认主题。

This commit is contained in:
taynpg 2024-09-15 15:22:06 +08:00
parent 693a371e0d
commit 1902e9d6ab

View File

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