From e651b731cfd39fe1331d746dbdb65c03e2c5d7e8 Mon Sep 17 00:00:00 2001 From: zhuzihcu Date: Mon, 12 Jun 2023 17:04:35 +0800 Subject: [PATCH] update --- example/qml/global/ItemsOriginal.qml | 2 +- example/qml/window/MainWindow.qml | 12 ++++++++++++ example/src/main.cpp | 1 - 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/example/qml/global/ItemsOriginal.qml b/example/qml/global/ItemsOriginal.qml index 51bb0a2..ed071a8 100644 --- a/example/qml/global/ItemsOriginal.qml +++ b/example/qml/global/ItemsOriginal.qml @@ -296,7 +296,7 @@ FluObject{ FluPaneItemExpander{ title:lang.other - icon:FluentIcons.Media + icon:FluentIcons.Shop FluPaneItem{ title:"RemoteLoader" onTap:{ diff --git a/example/qml/window/MainWindow.qml b/example/qml/window/MainWindow.qml index a1441d7..1917fdb 100644 --- a/example/qml/window/MainWindow.qml +++ b/example/qml/window/MainWindow.qml @@ -135,6 +135,7 @@ CustomWindow { FluRemoteLoader{ id:loader anchors.fill: parent +// source: "http://localhost:9000/RemoteComponent.qml" source: "https://zhu-zichu.gitee.io/RemoteComponent.qml" } } @@ -284,4 +285,15 @@ CustomWindow { } } + Shortcut { + sequence: "F5" + context: Qt.WindowShortcut + onActivated: { + if(flipable.flipped){ + loader.reload() + } + } + } + + } diff --git a/example/src/main.cpp b/example/src/main.cpp index 59f9a94..009a609 100644 --- a/example/src/main.cpp +++ b/example/src/main.cpp @@ -13,7 +13,6 @@ FRAMELESSHELPER_USE_NAMESPACE int main(int argc, char *argv[]) { //将样式设置为Basic,不然会导致组件显示异常 -// qputenv("QT_FONT_DPI","1"); qputenv("QT_QUICK_CONTROLS_STYLE","Basic"); FramelessHelper::Quick::initialize(); QGuiApplication::setOrganizationName("ZhuZiChu");