FluentUI/example/qml/window/PageWindow.qml

26 lines
505 B
QML
Raw Normal View History

2023-08-26 17:20:30 +08:00
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import FluentUI 1.0
import example 1.0
import "../component"
2023-10-08 19:48:32 +08:00
FluWindow {
2023-08-26 17:20:30 +08:00
id:window
width: 800
height: 600
minimumWidth: 520
minimumHeight: 200
launchMode: FluWindowType.SingleInstance
onInitArgument:
(arg)=>{
window.title = arg.title
2024-03-31 21:52:06 +08:00
loader.setSource(arg.url,{animationEnabled:false})
2023-08-26 17:20:30 +08:00
}
2023-11-02 23:02:08 +08:00
FluLoader{
2023-08-26 17:20:30 +08:00
id: loader
anchors.fill: parent
}
}