main
zhuzihcu 2023-06-12 17:04:35 +08:00
parent 31bdea8d44
commit e651b731cf
3 changed files with 13 additions and 2 deletions

View File

@ -296,7 +296,7 @@ FluObject{
FluPaneItemExpander{
title:lang.other
icon:FluentIcons.Media
icon:FluentIcons.Shop
FluPaneItem{
title:"RemoteLoader"
onTap:{

View File

@ -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()
}
}
}
}

View File

@ -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");