qlands
22nd June 2010, 12:34
Hi,
I have an application that applies transformations to QGraphicsPolygonItems.
The working code is:
QTransform trans;
trans = trans.rotate(formerRotation);
trans = trans.scale(currentXFactor,currentYFactor);
setTransform(trans,false); //Replaces the tranformation
However if I first scale and then rotate the result is completely different as rotating and then scaling.
Any idea why?
I have an application that applies transformations to QGraphicsPolygonItems.
The working code is:
QTransform trans;
trans = trans.rotate(formerRotation);
trans = trans.scale(currentXFactor,currentYFactor);
setTransform(trans,false); //Replaces the tranformation
However if I first scale and then rotate the result is completely different as rotating and then scaling.
Any idea why?