增加运行环境变量

This commit is contained in:
JackLee_CN 2024-10-13 22:34:40 +08:00
parent 63ab540c26
commit 73b255ae96
2 changed files with 3 additions and 3 deletions

View File

@ -110,12 +110,12 @@ SET(PROJECT_SOURCES
${src}
)
# qFatalqDebug
#LIST(APPEND CMAKE_CXX_FLAGS "-DQT_NO_DEBUG_OUTPUT")
LIST(APPEND CMAKE_CXX_FLAGS "-DQT_NO_DEBUG_OUTPUT")
#
QT6_ADD_RESOURCES(RCFILES res.qrc)
#WIN32
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES} ${RCFILES} xsteam.rc)
add_executable(${PROJECT_NAME} WIN32 ${PROJECT_SOURCES} ${RCFILES} xsteam.rc)
#
#RPATH

View File

@ -5,7 +5,7 @@
int main(int argc, char *argv[])
{
qputenv("QT_QPA_PLATFORM","windows:fontengine=freetype");
QApplication a(argc, argv);
QTranslator qtBaseTranslator;
if (!qtBaseTranslator.load(QStringLiteral(":/res/translator/qtbase_zh_CN.qm")))