equal
deleted
inserted
replaced
|
1 import Qt 4.7 |
|
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 } |