theme:设置为默认主题。
This commit is contained in:
parent
693a371e0d
commit
1902e9d6ab
4
main.cpp
4
main.cpp
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user