I have following code and could not find how to find the origin of rotation.
My target is rotate centerarrow around the center (like hour, minute etc)
In the clock example (http://doc.qt.digia.com/qt/declarati...clock-qml.html) the origin is hard code and I belive it may not work in all phone?

Any idea, how this can be calculated ( origin.x: ?; origin.y: ?; )so it works in all phone?

id: centerarrow
x: dirimagemain.width/2
y: dirimagemain.width/2-centerarrow.height/2;

fillMode: Image.PreserveAspectFit; smooth: true
source: "Images/travelarrow.png"

transform: Rotation {
id: secondRotation
origin.x: 0; origin.y: 0;
angle: disttravelAngle
Behavior on angle {
SpringAnimation { spring: 2; damping: 0.2; modulus: 360 }