forked from demitov/dashApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDash.qml
79 lines (68 loc) · 1.38 KB
/
Dash.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
import QtQuick 2.9
Item {
id: dash
width: 960
height: 720
// Coolant temp
ProgressBar{
id: coolantTemp
x: 56
y: 140
visible: true
//
scale_value: main.sourceData[5] <= 50 ? 0 : (sourceData[5] - 50) * 3
}
// Fuel level
ProgressBar{
id: fuelLevel
x: 814
y: 140
//
scale_value: 144
}
// DashMask
Image {
id: dashMask
source: "./images/DashMask.png"
anchors.centerIn: parent
}
// DashMask {
// anchors.centerIn: parent
// }
// Clock
// Clock {
// x: 400
// y: 370
// }
//
Inscription {
id: voltmeter
anchors.left: parent.left
anchors.bottom: parent.bottom
text: String(main.sourceData[3])
size: 20
}
Tachometer {
id: tachometer
anchors.centerIn: parent
rpm: main.sourceData[2] * 0.04
}
// Speedometer
Inscription {
id: speedometer
anchors.centerIn: parent
text: String(main.sourceData[1])
size: 90
}
// Odometer
Inscription {
id: odometer
anchors.horizontalCenter: speedometer.horizontalCenter
anchors.top: speedometer.bottom
text: String(main.sourceData[6])
size: 22
}
// Icons{
// // in progress icons
// }
}