diff --git a/CMakeLists.txt b/CMakeLists.txt index 05bc45d..850ac40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ if (MSVC) # if(${QT_VERSION_MAJOR} LESS 6) # add_compile_options(/source-charset:utf-8) # endif() -add_compile_options(/source-charset:utf-8) +#add_compile_options(/source-charset:utf-8) add_compile_options(/EHsc) add_compile_options(/wd4267) add_compile_options(-D_CRT_SECURE_NO_WARNINGS) diff --git a/MainWidget.ui b/MainWidget.ui index 5712eae..9336959 100644 --- a/MainWidget.ui +++ b/MainWidget.ui @@ -6,8 +6,8 @@ 0 0 - 1102 - 682 + 1139 + 591 @@ -87,7 +87,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -142,7 +142,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -228,7 +228,7 @@ - Qt::Horizontal + Qt::Orientation::Horizontal @@ -248,7 +248,7 @@ - Qt::Horizontal + Qt::Orientation::Horizontal diff --git a/main.cpp b/main.cpp index 843ec62..915d21b 100644 --- a/main.cpp +++ b/main.cpp @@ -1,22 +1,25 @@ #include +#include #include "MainWidget.h" int main(int argc, char *argv[]) { + setlocale(LC_ALL, ".utf-8"); + QApplication a(argc, argv); #ifdef _WIN32 QFont font("Microsoft YaHei", 9); a.setFont(font); //a.setStyle("fusion"); + a.setStyle("windows"); #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();