Item {
width: parent.width
height: width
Image {
id: bug
source: "qrc:/testsdf.png"
sourceSize: Qt.size(parent.width, parent.height)
smooth: true
visible: false
}
Rectangle{
id: mask
anchors.fill: parent
radius: height/2
visible: false
}
OpacityMask {
anchors.fill: parent
source: bug
maskSource: mask
}
}