I am trying to draw an arc inside a rectangle with QML. I have found an example in the Qt Documentation using Path and PathArc element. I adapted it to the following
Rectangle {
id: back
width: 20
height: width
Path {
startX: back.width/2
startY: back.height*2/3
PathArc {
radiusX: back.width/3
radiusY: back.height/3
x: back.width/6
y: back.height/2
}
}
}
However I have the problem that nothing is displayed. I have found no method to set the color of the arc so I am not really sure what happens (either nothing is painted or it is painted with the background color). Can anyone help ?