blob: 8db08b4268868917b5d58eaec4fdc7e13fb10ca6 (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
import QtQuick 2.9
import QtQuick.Shapes 6.6
Item {
width: 320
height: 480
ListModel {
id: renderers
ListElement { renderer: Shape.GeometryRenderer }
ListElement { renderer: Shape.CurveRenderer }
}
Row {
Repeater {
model: renderers
Column {
Repeater {
model: 4
Item {
width: 160
height: 100
Shape {
anchors.fill: parent
preferredRendererType: renderer
ShapePath {
strokeWidth: (model.index + 2) * 2
strokeColor: "black"
fillColor: "lightBlue"
startX: 30; startY: 100
PathCubic {
x: 130; y: 100
control1X: model.index * 10; control1Y: model.index * 5
control2X: model.index * -10; control2Y: model.index * 10
}
}
}
}
}
}
}
}
}
|