-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathParamCard.qml
69 lines (64 loc) · 1.92 KB
/
ParamCard.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
import QtQuick 2.12
import QtQuick.Controls 2.12
//Item {
Rectangle {
//anchors.fill: parent
width: 310
height: 135
color: "#3C3E95"
radius: 10
property int pvalue: 0
property string pname: "cardname"
property string punit: "---"
Text {
id: value
text: parent.pvalue.toString()
anchors.top: parent.top
anchors.right: parent.right
anchors.topMargin: 15
anchors.rightMargin: 15
font.pixelSize: 58
font.family: "Cambria"
color: "white"
// transform: [
// Rotation {
// origin.x: ppeakText.width / 2
// origin.y: ppeakText.height / 2
// //angle: -90
// }
// ]
}
Text {
id: cardName
text: parent.pname.toString()
anchors.bottom: parent.bottom; anchors.bottomMargin: 20
anchors.left: parent.left; anchors.leftMargin: 20
font.pixelSize: 25
font.family: "Cambria"
color: "white"
// transform: [
// Rotation {
// origin.x: ppeakText.width / 2
// origin.y: ppeakText.height / 2
// //angle: -90
// }
// ]
}
Text {
id: cardUnit
text: parent.punit.toString()
anchors.bottom: parent.bottom; anchors.bottomMargin: 20
anchors.right: parent.right; anchors.rightMargin: 20
font.pixelSize: 15
font.family: "Cambria"
color: "white"
// transform: [
// Rotation {
// origin.x: ppeakText.width / 2
// origin.y: ppeakText.height / 2
// //angle: -90
// }
// ]
}
}
//}