-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathHand.qml
More file actions
44 lines (38 loc) · 866 Bytes
/
Hand.qml
File metadata and controls
44 lines (38 loc) · 866 Bytes
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
import QtQuick
import QtQuick.Shapes
Shape {
id: root
property real centerX: 0
property real centerY: 0
property real length: 50
property color color: "white"
property real angle: 0
width: 2
x: centerX
y: centerY
preferredRendererType: Shape.CurveRenderer
ShapePath {
strokeColor: "transparent"
fillColor: root.color
capStyle: ShapePath.RoundCap
joinStyle: ShapePath.RoundJoin
PathMove {
x: -root.width
y: root.length * 0.1
}
PathLine {
x: 0
y: -root.length
}
PathLine {
x: root.width
y: root.length * 0.1
}
PathLine {
x: -root.width
y: root.length * 0.1
}
}
rotation: root.angle
transformOrigin: Item.TopLeft
}