forked from Seeed-Studio/Seeed_Python_ReTerminalQt5Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLight_sensor.ui.qml
More file actions
68 lines (59 loc) · 1.41 KB
/
Light_sensor.ui.qml
File metadata and controls
68 lines (59 loc) · 1.41 KB
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
import QtQuick 2.8
import QtCharts 2.2
import "backend/Data" as Data
Item {
id: light
width: 833
height: 480
property alias lightaxisX: light_x
ChartView {
id: chartview
anchors.fill: parent
antialiasing: true
//X轴
ValueAxis {
id: lightAxisX
min: 5>=lightaxisXvalue ? 0:lightaxisXvalue-5
max: 5>=lightaxisXvalue ? 5:lightaxisXvalue - 1
tickCount: 6
}
//Y轴
ValueAxis {
id: lightAxisY
min: 500>=Data.Values.lightvalue ? 0:600
max: 500>=Data.Values.lightvalue ? 600:30000
tickCount: 7
}
SplineSeries {
id:light_x
name: "Light Intensity (Lux)"
axisX: lightAxisX
axisY: lightAxisY
}
}
Image {
id: light_border
x: 0
y: 0
source: "assets/light_border.png"
}
Text {
id: light_sensor
x: 45
y: 38
width: 104
height: 25
color: "#000000"
text: "Light Sensor"
font.pixelSize: 21
horizontalAlignment: Text.AlignLeft
font.styleName: "Regular"
font.family: "Microsoft YaHei"
}
}
/*##^##
Designer {
D{i:0;uuid:"06f9eda11bc877aaaa14a2ad2c60bea2"}D{i:1;uuid:"57000d26864f16c89b4be6c357a30322"}
D{i:2;uuid:"b15f19e004d87606aa05341526c9fe83"}
}
##^##*/