Qt Qml에서 원형 이미지를 구현하고 싶습니다. 다음 코드로 Image 요소를 사용하고 있습니다.Qt Qml의 원형 이미지
Rectangle {
id: mask
anchors.centerIn: parent
width: 200
height: 200
radius: 100
clip:true
}
Image {
id: image
anchors.fill: mask
source: "test.jpg"
}
그러나 작동하지 않습니다. 당신이 이것에 대해 어떤 생각이 든다면 나를 도와주세요. 감사.
가능한 복제 (http://stackoverflow.com/questions/6090740/image-rounded-corners-in-qml) – BaCaRoZzo