Rotating an image is clockwise or anticlockwise



  • I want to rotate an image using mouse dragging like controlling a steering image. My problem is that how to identify whether the rotation is clockwise or anticlockwise.Basically I want to know whether any of the property( like x,y,anchors etc.) other than rotation is changing.



  • You need to get the x and y of mouseevent and do mathematical calculation. I'm sure there will some ready algorithm available in the net. Any reason you don't want to use roation changing property ?


Log in to reply
 

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