projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
declarative
/
qdeclarativepathview
/
data
/
pathUpdateOnStartChanged.qml
1
import QtQuick 1.0
2
3
Rectangle {
4
width: 800
5
height: 480
6
color: "black"
7
resources: [
8
ListModel {
9
id: appModel
10
ListElement { color: "green" }
11
},
12
Component {
13
id: appDelegate
14
Rectangle {
15
id: wrapper
16
objectName: "wrapper"
17
color: "green"
18
width: 100
19
height: 100
20
}
21
}
22
]
23
PathView {
24
id: pathView
25
objectName: "pathView"
26
model: appModel
27
anchors.fill: parent
28
29
transformOrigin: "Top"
30
delegate: appDelegate
31
path: Path {
32
objectName: "path"
33
startX: pathView.width / 2 // startX: 400 <- this works as expected
34
startY: 300
35
PathLine { x: 400; y: 120 }
36
}
37
}
38
}