blob: aa5bb591d7e5929a7a8114cc20dc9e42a363356a (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick.Shapes
Item {
ControlledShape {
id: shape
anchors.top: parent.top
anchors.left: parent.left
width: parent.width
height: parent.height / 2
startX: 10
startY: 100
delegate: [
PathArc {
relativeX: 50
y: 100
radiusX: 25
radiusY: 25
},
PathArc {
relativeX: 50
y: 100
radiusX: 25
radiusY: 35
},
PathArc {
relativeX: 50
y: 100
radiusX: 25
radiusY: 60
},
PathArc {
relativeX: 50
y: 100
radiusX: 50
radiusY: 120
}
]
}
ControlledShape {
width: parent.width
height: parent.height / 2
anchors.bottom: parent.bottom
anchors.right: parent.right
fillColor: "transparent"
strokeColor: "darkBlue"
strokeWidth: 20
capStyle: ShapePath.RoundCap
delegate: [
PathAngleArc {
centerX: 65
centerY: 95
radiusX: 45
radiusY: 45
startAngle: -180
SequentialAnimation on sweepAngle {
loops: Animation.Infinite
NumberAnimation {
to: 360
duration: 2000
}
NumberAnimation {
to: 0
duration: 2000
}
}
}
]
}
}
|