| 1 |
import QtQuick 2.9 |
| 2 |
import QtQuick.Shapes 1.0 |
| 3 |
|
| 4 |
Item { |
| 5 |
width: 320 |
| 6 |
height: 480 |
| 7 |
|
| 8 |
Shape { |
| 9 |
vendorExtensionsEnabled: false |
| 10 |
|
| 11 |
anchors.fill: parent |
| 12 |
|
| 13 |
ShapePath { |
| 14 |
strokeWidth: 1 |
| 15 |
strokeColor: "red" |
| 16 |
fillColor: "transparent" |
| 17 |
PathLine { x: 50; y: 50 } |
| 18 |
} |
| 19 |
ShapePath { |
| 20 |
strokeWidth: 2 |
| 21 |
strokeColor: "blue" |
| 22 |
fillColor: "transparent" |
| 23 |
startX: 20 |
| 24 |
PathLine { x: 70; y: 50 } |
| 25 |
} |
| 26 |
ShapePath { |
| 27 |
strokeWidth: 3 |
| 28 |
strokeColor: "green" |
| 29 |
fillColor: "transparent" |
| 30 |
startX: 40 |
| 31 |
PathLine { x: 90; y: 50 } |
| 32 |
} |
| 33 |
ShapePath { |
| 34 |
strokeWidth: 4 |
| 35 |
strokeColor: "yellow" |
| 36 |
fillColor: "transparent" |
| 37 |
startX: 60 |
| 38 |
PathLine { x: 110; y: 50 } |
| 39 |
} |
| 40 |
ShapePath { |
| 41 |
strokeWidth: 5 |
| 42 |
strokeColor: "black" |
| 43 |
fillColor: "transparent" |
| 44 |
strokeStyle: ShapePath.DashLine |
| 45 |
startX: 80 |
| 46 |
PathLine { x: 130; y: 50 } |
| 47 |
} |
| 48 |
|
| 49 |
ShapePath { |
| 50 |
strokeWidth: 20 |
| 51 |
strokeColor: "gray" |
| 52 |
fillColor: "transparent" |
| 53 |
capStyle: ShapePath.RoundCap |
| 54 |
startX: 120; startY: 20 |
| 55 |
PathLine { x: 200; y: 100 } |
| 56 |
} |
| 57 |
|
| 58 |
ShapePath { |
| 59 |
strokeColor: "black" |
| 60 |
strokeWidth: 16 |
| 61 |
fillColor: "transparent" |
| 62 |
capStyle: ShapePath.RoundCap |
| 63 |
joinStyle: ShapePath.BevelJoin |
| 64 |
startX: 20 |
| 65 |
startY: 100 |
| 66 |
PathLine { x: 120; y: 200 } |
| 67 |
PathLine { x: 50; y: 200 } |
| 68 |
} |
| 69 |
ShapePath { |
| 70 |
strokeColor: "black" |
| 71 |
strokeWidth: 16 |
| 72 |
fillColor: "transparent" |
| 73 |
capStyle: ShapePath.RoundCap |
| 74 |
joinStyle: ShapePath.MiterJoin |
| 75 |
startX: 150 |
| 76 |
startY: 100 |
| 77 |
PathLine { x: 250; y: 200 } |
| 78 |
PathLine { x: 180; y: 200 } |
| 79 |
} |
| 80 |
ShapePath { |
| 81 |
strokeColor: "black" |
| 82 |
strokeWidth: 16 |
| 83 |
fillColor: "transparent" |
| 84 |
capStyle: ShapePath.RoundCap |
| 85 |
joinStyle: ShapePath.RoundJoin |
| 86 |
startX: 270 |
| 87 |
startY: 100 |
| 88 |
PathLine { x: 310; y: 200 } |
| 89 |
PathLine { x: 280; y: 200 } |
| 90 |
} |
| 91 |
} |
| 92 |
} |