QML change rotation origin
-
Hello!
I have this items built with this code:
MapItemView { id: item MapCircle { id: circle center { latitude: 40.353586 longitude: -3.745564 } radius: 5.0 color: '#BF008000' border.width: 3 } MapPolygon { id: polygon color: '#BF008000' path: [ { latitude: 40.353586, longitude: -3.745564 }, { latitude: 40.354060, longitude: -3.745146 }, { latitude: 40.353772, longitude: -3.744883 } ] } transform: Rotation { id: rotate angle: 0 origin.x: (circle.TopLeft + circle.width) / 2 origin.y: (circle.TopLeft + circle.height) / 2 } }
I need to rotate it putting the origin in the center of the circle. Now, with this code, the movement isn't correct at all when I rotate it:

I need the circle keeps its position.
Do you know how to do it?
Thank you very much!