-
Notifications
You must be signed in to change notification settings - Fork 0
/
HomeForm.ui.qml
108 lines (94 loc) · 2.23 KB
/
HomeForm.ui.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import QtQuick 2.9
import QtQuick.Controls 2.2
Page {
id: page
width: 380
height: 640
title: qsTr("Benvenuto")
Connections {
target: pagamentiArea
onClicked: stackView.push("QRscan.ui.qml")
}
Connections {
target: negozioArea
onClicked: stackView.push("Shop.ui.qml")
}
Rectangle {
id: pagamentiRect
x: 0
y: 0
width: stackView.width
height: stackView.height/2
gradient: Gradient {
GradientStop {
position: 0
color: "#ffffff"
}
GradientStop {
position: 1
color: "#e0e0e0"
}
}
MouseArea {
id: pagamentiArea
anchors.fill: parent
}
Text {
id: text1
x: 0
y: parent.height/6
width: parent.width
height: 37
text: qsTr("Pagamenti")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 30
}
Image {
id: image1
x: (parent.width/2) - 100
y: parent.height/4
width: 200
height: 200
source: "qrc:/images/pagamento.png"
}
}
Rectangle {
id: negozioRect
x: 0
y: pagamentiRect.height
width: stackView.width
height: stackView.height/2
gradient: Gradient {
GradientStop {
position: 0
color: "#ffffff"
}
GradientStop {
position: 1
color: "#e0e0e0"
}
}
MouseArea {
id: negozioArea
anchors.fill: parent
}
Text {
id: text2
x: 0
y: parent.height/6
width: parent.width
height: 37
text: qsTr("Il mio negozio")
horizontalAlignment: Text.AlignHCenter
font.pixelSize: 30
}
Image {
id: image2
x: (parent.width/2) - 100
y: parent.height/4
width: 200
height: 200
source: "qrc:/images/negozio.png"
}
}
}