I want to implement circular image in Qt Qml. I am using Image element with the following code.
Rectangle {
id: mask
anchors.centerIn: parent
width: 200
height: 200
radius: 100
clip:true
}
Image {
id: image
anchors.fill: mask
source: "test.jpg"
}
but it's not working. Help me out if you have any idea for this. Thanks.