From 0d08d59cf1382f8b85058e5b40505b0a35eecd79 Mon Sep 17 00:00:00 2001 From: yxdy Date: Sat, 8 Mar 2025 13:34:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cmake?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gallery/CMakeLists.txt | 1 + Gallery/res/qml/component/MapContainer.qml | 2 +- Gallery/src/main.cpp | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Gallery/CMakeLists.txt b/Gallery/CMakeLists.txt index 77669e0..02dc3cd 100644 --- a/Gallery/CMakeLists.txt +++ b/Gallery/CMakeLists.txt @@ -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 ) diff --git a/Gallery/res/qml/component/MapContainer.qml b/Gallery/res/qml/component/MapContainer.qml index 1cccd29..a23eb48 100644 --- a/Gallery/res/qml/component/MapContainer.qml +++ b/Gallery/res/qml/component/MapContainer.qml @@ -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 diff --git a/Gallery/src/main.cpp b/Gallery/src/main.cpp index cd75e2f..7d62346 100644 --- a/Gallery/src/main.cpp +++ b/Gallery/src/main.cpp @@ -8,6 +8,7 @@ #include "AppInfo.h" #include "SettingsHelper.h" #include "Log.h" +#include #include #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);