FluentUI/example/qml/window/PageWindow.qml
朱子楚\zhuzi 68015776ab update
2024-03-31 21:52:06 +08:00

26 lines
505 B
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import FluentUI 1.0
import example 1.0
import "../component"
FluWindow {
id:window
width: 800
height: 600
minimumWidth: 520
minimumHeight: 200
launchMode: FluWindowType.SingleInstance
onInitArgument:
(arg)=>{
window.title = arg.title
loader.setSource(arg.url,{animationEnabled:false})
}
FluLoader{
id: loader
anchors.fill: parent
}
}