diff --git a/example/qml/global/ItemsOriginal.qml b/example/qml/global/ItemsOriginal.qml index 51bb0a25..ed071a89 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 a1441d7a..1917fdbd 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 59f9a94a..009a6090 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");