修改cmake
Some checks failed
Gallery App Build / macOS (push) Has been cancelled
Gallery App Build / Ubuntu (push) Has been cancelled
Gallery App Build / Windows (push) Has been cancelled

This commit is contained in:
yxdy 2025-03-08 13:34:39 +08:00
parent 9debdc84b8
commit 0d08d59cf1
3 changed files with 5 additions and 1 deletions

View File

@ -227,6 +227,7 @@ set(RESOURCES_FILES
res/image/components/ico_font.png
res/image/components/map/ico_phone.png
res/image/components/map/ico_nav.png
res/qml/DB/database.js
Gallery_zh_CN.qm
Gallery_en_US.qm
)

View File

@ -53,7 +53,7 @@ Item {
Layout.preferredWidth: 500
Layout.preferredHeight: 60230
id: webQues
url: "http://localhost:8077/maptool/" // http://123.6.102.119:85/
url: "http://123.6.102.119:85/maptool/" // http://123.6.102.119:85/
settings.localContentCanAccessRemoteUrls: true
settings.localContentCanAccessFileUrls: false
settings.pluginsEnabled: false

View File

@ -8,6 +8,7 @@
#include "AppInfo.h"
#include "SettingsHelper.h"
#include "Log.h"
#include <windows.h>
#include <QtWebEngineQuick/qtwebenginequickglobal.h>
#ifdef FLUENTUI_BUILD_STATIC_LIB
@ -21,6 +22,8 @@ int main(int argc, char *argv[]) {
// qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--ignore-gpu-blacklist --enable-gpu --vsync-interval=7 --max-gum-fps='144'");
// qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-frame-rate-limit");
// ShowWindow(GetConsoleWindow(), SW_SHOW);
qputenv("QT_QUICK_CONTROLS_CONF", ":/qt/qml/Gallery/qtquickcontrols2.conf");
QGuiApplication::setOrganizationName(PROJECT_COMPANY);
QGuiApplication::setOrganizationDomain(PROJECT_DOMAIN);