2023-03-13 18:23:46 +08:00
|
|
|
|
import QtQuick 2.15
|
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
|
import QtQuick.Window 2.15
|
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
|
import FluentUI 1.0
|
|
|
|
|
|
|
|
|
|
FluScrollablePage{
|
|
|
|
|
|
|
|
|
|
title:"MultiWindow"
|
|
|
|
|
|
2023-03-13 21:18:51 +08:00
|
|
|
|
property string password: ""
|
|
|
|
|
|
|
|
|
|
property var loginPageRegister: registerForPageResult("/login")
|
|
|
|
|
|
|
|
|
|
Connections{
|
|
|
|
|
target: loginPageRegister
|
|
|
|
|
function onResult(data)
|
|
|
|
|
{
|
|
|
|
|
password = data.password
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-13 18:23:46 +08:00
|
|
|
|
FluArea{
|
|
|
|
|
width: parent.width
|
2023-03-13 21:28:35 +08:00
|
|
|
|
height: 100
|
2023-03-13 18:23:46 +08:00
|
|
|
|
paddings: 10
|
|
|
|
|
Layout.topMargin: 20
|
|
|
|
|
|
|
|
|
|
Column{
|
2023-03-13 21:28:35 +08:00
|
|
|
|
spacing: 15
|
2023-03-13 18:23:46 +08:00
|
|
|
|
anchors{
|
|
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
|
|
left: parent.left
|
|
|
|
|
}
|
|
|
|
|
FluText{
|
|
|
|
|
text:"页面跳转,不携带任何参数"
|
|
|
|
|
}
|
|
|
|
|
FluButton{
|
|
|
|
|
text:"点击跳转"
|
|
|
|
|
onClicked: {
|
|
|
|
|
FluApp.navigate("/about")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FluArea{
|
|
|
|
|
width: parent.width
|
2023-03-13 21:18:51 +08:00
|
|
|
|
height: 130
|
2023-03-13 18:23:46 +08:00
|
|
|
|
paddings: 10
|
|
|
|
|
Layout.topMargin: 20
|
|
|
|
|
|
|
|
|
|
Column{
|
2023-03-13 21:18:51 +08:00
|
|
|
|
spacing: 15
|
2023-03-13 18:23:46 +08:00
|
|
|
|
anchors{
|
|
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
|
|
left: parent.left
|
|
|
|
|
}
|
|
|
|
|
FluText{
|
2023-03-13 21:18:51 +08:00
|
|
|
|
text:"页面跳转,并携带参数用户名:zhuzichu"
|
2023-03-13 18:23:46 +08:00
|
|
|
|
}
|
|
|
|
|
FluButton{
|
2023-03-13 21:18:51 +08:00
|
|
|
|
text:"点击跳转到登录"
|
2023-03-13 18:23:46 +08:00
|
|
|
|
onClicked: {
|
2023-03-13 21:18:51 +08:00
|
|
|
|
loginPageRegister.launch({username:"zhuzichu"})
|
2023-03-13 18:23:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-03-13 21:18:51 +08:00
|
|
|
|
|
|
|
|
|
FluText{
|
|
|
|
|
text:"登录窗口返回过来的密码->"+password
|
|
|
|
|
}
|
2023-03-13 18:23:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|