Debian Codegraph @

tests/manual/scenegraph_lancelot/data/shape/shape_cubic.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 PathCubic {
26 x: 150; y: 100
27 control1X: model.index * 10; control1Y: model.index * 5
28 control2X: model.index * -10; control2Y: model.index * 10
29 }
30 }
31 }
32 }
33 }
34 }
35 }