Hey, I ran into an issue on a certain Android device, where clipping of items do not work under certain conditions. I’ve got an android tablet, where the following code only clips on Rotation angles 0 degrees, 90 degrees, 180 degrees & 270 degrees. Other platforms work fine and also another android device works fine. Seems to be a Qt bug, as it also happens in a standard Qt app. Here’s the code:
Rectangle {
id: clipTurn
anchors.centerIn: parent
width: 20
height: 100
color:"red"
clip: true
property real angle: 0
Timer{
running:true
repeat: true
interval: 400
onTriggered:{
clipTurn.angle+=10;
}
}
Rectangle {
anchors.horizontalCenter: parent.horizontalCenter
width: 10
height: 130
color: "yellow"
}
transform: Rotation { origin.x: clipTurn.width/2; origin.y: clipTurn.width/2; angle: clipTurn.angle}
}
Does anyone at least have a workaround for that?