Problem with Rotation of qml element



  • Hi,
    I have created a qml element that is a compass, and I want to be able to rotate it in my main window. The problem is that it appears that only the part that was visible at first (before the rotation) rotates.
    Here are some screenshots before and after the rotation so that you can understand better.
    before the rotation
    after the rotation

    My compass qml element name is Compas, so in my "main.qml" I'm writing :
    Compas {
    transform : Rotation {origin.x : width/2 ; origin.y : height/2 ; angle : 40 }
    }

    Thanks for your help !


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.