-
Notifications
You must be signed in to change notification settings - Fork 488
/
Copy pathPage1.qml
53 lines (47 loc) · 994 Bytes
/
Page1.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*!
*@file Page1.qml
*@brief Page1
*@version 1.0
*@section LICENSE Copyright (C) 2003-2103 CamelSoft Corporation
*@author zhengtianzuo
*/
import QtQuick 2.8
import QtQuick.Controls 2.1
Page {
id: frmWindow
title: qsTr("设置")
visible: true
property StackView stack: null
Button {
height: 32
width: 120
text: "<-"
anchors.left: parent.left
anchors.top: parent.top
onClicked: stack.pop()
}
Label{
id: label
text: qsTr("设置")
height: 80
width: 240
anchors.centerIn: parent
font.pixelSize: 20
}
Button {
height: 32
width: 120
text: qsTr("个人设置")
anchors.right: parent.right
anchors.bottom: parent.bottom
onClicked: {
page2.visible = true;
page2.stack = stack;
stack.push(page2);
}
}
Page2 {
id: page2
visible: false
}
}