forked from Seeed-Studio/Seeed_Python_ReTerminalQt5Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAccelerometer.ui.qml
85 lines (73 loc) · 1.66 KB
/
Accelerometer.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
import QtQuick 2.8
import QtCharts 2.2
import "backend/Data" as Data
Item {
id: accel1
width: 833
height: 480
property alias axisX: axis_x
property alias axisY: axis_y
property alias axisZ: axis_z
ChartView {
id: chartview
anchors.fill: parent
antialiasing: true
//X轴
ValueAxis {
id: valueAxisX
min: 5>=axisXvalue ? 0:axisXvalue-5
max: 5>=axisXvalue ? 5:axisXvalue - 1
tickCount: 6
}
//Y轴
ValueAxis {
id: valueAxisY
min: -1200
max: 1200
tickCount: 7
}
SplineSeries {
id:axis_x
name: "x"
axisX: valueAxisX
axisY: valueAxisY
}
SplineSeries {
id:axis_y
name: "y"
axisX: valueAxisX
axisY: valueAxisY
}
SplineSeries {
id:axis_z
name: "z"
axisX: valueAxisX
axisY: valueAxisY
}
}
Image {
id: accel_border
x: 0
y: 0
source: "assets/accel_border.png"
}
Text {
id: axis_accelerometer
x: 43
y: 31
width: 221
height: 26
color: "#000000"
text: "3-Axis Accelerometer"
font.pixelSize: 21
horizontalAlignment: Text.AlignLeft
font.styleName: "Regular"
font.family: "Microsoft YaHei"
}
}
/*##^##
Designer {
D{i:0;uuid:"ea5896b3df1d22f0abdf13e302ffb028"}D{i:1;uuid:"83836960d50307157ef06d38b0e137f1"}
D{i:2;uuid:"d3de8bb08bb40facb4560f9f9b7781ea"}
}
##^##*/