blob: 479c5dc5003a2dac6d975724b2d91eaf1ce5b29c (
plain)
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
|
import QtQuick 2.0
PathView {
property int countclick: 0
id: pathview
y: 0
width: 348
height: 480
interactive: false
cacheItemCount: 10
currentIndex: 2
pathItemCount: 4
highlightMoveDuration: 1000
highlightRangeMode : PathView.StrictlyEnforceRange
preferredHighlightBegin: 0.5
preferredHighlightEnd: 0.5
snapMode : PathView.SnapOneItem
path: Path {
id: leftPath
startX: pathview.width / 2 - 800
startY: pathview.height / 2 - 800
PathArc {
x: pathview.width / 2 - 800
y: pathview.height / 2 + 800
radiusX: 800
radiusY: 800
direction: PathArc.Clockwise
}
}
model: ListModel {
id: model
ListElement { objectName:"aqua"; name: "aqua" ;mycolor:"aqua"}
ListElement { objectName:"blue"; name: "blue" ;mycolor:"blue"}
ListElement { objectName:"blueviolet"; name: "blueviolet" ;mycolor:"blueviolet"}
ListElement { objectName:"brown"; name: "brown" ;mycolor:"brown"}
ListElement { objectName:"chartreuse"; name: "chartreuse" ;mycolor:"chartreuse"}
}
delegate: Item {
id: revolveritem
objectName: model.objectName
width: pathview.width
height: pathview.height
Rectangle
{
id:myRectangle
color: mycolor
width: pathview.width -20
height: pathview.height -20
Text {
anchors.centerIn: parent
text: "index:"+index
color: "white"
}
}
}
}
|