-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPage4.qml
74 lines (69 loc) · 1.81 KB
/
Page4.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
import QtQuick 2.12
import QtQuick.Controls 2.5
import QtQml.Models 2.1
Page {
width: 800
height: 600
anchors.fill: parent
title: qsTr("Home")
signal emitSparks(var xPos, var yPos, var numberOfParticles)
signal nextSlide(var newPage)
Item {
id: element
anchors.fill: parent
PathView {
id: pathView
model: ObjectModel {
id: itemModel
Rectangle {
height: 30
width: 80
color: "red"
Label {
anchors.fill: parent
text: "Drag"
}
}
Rectangle {
height: 30
width: 80
color: "green"
Label {
anchors.fill: parent
text: "Move"
}
}
Rectangle {
height: 30
width: 80
color: "blue"
Label {
anchors.fill: parent
text: "Flick"
}
}
}
anchors.fill: parent
path: Path {
startY: 346
startX: 340
PathQuad {
x: 120
y: 25
controlX: 260
controlY: 75
}
PathQuad {
x: 120
y: 100
controlX: -20
controlY: 75
}
}
delegate: ItemDelegate {
id: itemDelegate
text: modeldata
}
}
}
}