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
QTransform trans;
trans = trans.rotate(formerRotation);
trans = trans.scale(currentXFactor,currentYFactor);
setTransform(trans,false); //Replaces the tranformation
To copy to clipboard, switch view to plain text mode
However if I first scale and then rotate the result is completely different as rotating and then scaling.
Any idea why?
Bookmarks