Hi,

I have QGraphicsRectItem on my scene and now I want to rotate this rectangle around x or y axis besides default z axis. I want this to be acheived using QSlider which has a range of 0 to 360. When I slides the slider its value is passed to QTransform as an angle to rorate and respective axis parameter is mentioned in rotate method. This rotates the rectangle but it is not to the angle as it should be, particulary when we are reversing slider it should go back to original state and once slider value is 0 it should be as it before we start i.e. no rotation. But it is giving wiered behviour and not rorating as per expectation.

Can somebody help me out.

Thanks in advance


Manish