blob: bfa4ab8243d7ca7205f82d08ff9c5fc0db0fbc9b (
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
|
import QtQuick 2.0
PathView {
id: view
property int delegatesCreated: 0
property int delegatesDestroyed: 0
anchors.fill: parent
preferredHighlightBegin: 0.5
preferredHighlightEnd: 0.5
pathItemCount: 6
interactive: true
model: 19
delegate: Text {
text: modelData
Component.onCompleted: view.delegatesCreated++;
Component.onDestruction: view.delegatesDestroyed++;
}
path: Path {
PathLine {
x: 0
y: 400
}
}
}
|