tests/manual/scenegraph_lancelot/data/shape/shape_quad.qml
raw| 1 | import QtQuick 2.9 |
| 2 | import QtQuick.Shapes 1.0 |
| 3 | |
| 4 | Item { |
| 5 | width: 320 |
| 6 | height: 480 |
| 7 | |
| 8 | Column { |
| 9 | Repeater { |
| 10 | model: 4 |
| 11 | Item { |
| 12 | width: 200 |
| 13 | height: 100 |
| 14 | |
| 15 | Shape { |
| 16 | anchors.fill: parent |
| 17 | vendorExtensionsEnabled: false |
| 18 | |
| 19 | ShapePath { |
| 20 | strokeWidth: (model.index + 2) * 2 |
| 21 | strokeColor: "black" |
| 22 | fillColor: "lightBlue" |
| 23 | |
| 24 | startX: 50; startY: 100 |
| 25 | PathQuad { |
| 26 | x: 150; y: 100 |
| 27 | controlX: model.index * 10; controlY: model.index * 5 |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | } |
| 34 | } |