Debian Codegraph @

tests/auto/quick/qquickshape/data/pathitem5.qml

raw
1 import QtQuick 2.9
2 import tst_qquickpathitem 1.0
3
4 Item {
5 width: 200
6 height: 150
7
8 Shape {
9 vendorExtensionsEnabled: false
10 objectName: "pathItem"
11 anchors.fill: parent
12
13 ShapePath {
14 strokeWidth: 4
15 strokeColor: "red"
16 fillGradient: RadialGradient {
17 centerX: 100; centerY: 100; centerRadius: 100
18 focalX: 100; focalY: 100; focalRadius: 10
19 GradientStop { position: 0; color: "#ffffff" }
20 GradientStop { position: 0.11; color: "#f9ffa0" }
21 GradientStop { position: 0.13; color: "#f9ff99" }
22 GradientStop { position: 0.14; color: "#f3ff86" }
23 GradientStop { position: 0.49; color: "#93b353" }
24 GradientStop { position: 0.87; color: "#264619" }
25 GradientStop { position: 0.96; color: "#0c1306" }
26 GradientStop { position: 1; color: "#000000" }
27 }
28 fillColor: "blue" // ignored with the gradient set
29 strokeStyle: ShapePath.DashLine
30 dashPattern: [ 1, 4 ]
31 startX: 20; startY: 20
32 PathLine { x: 180; y: 130 }
33 PathLine { x: 20; y: 130 }
34 PathLine { x: 20; y: 20 }
35 }
36 }
37 }