Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.2.1
Description
The compatibility docs for QGraphicsItem::rotate() state that the equivalent of the old rotate() method is:
setRotation(rotation() + angle);
This is not correct. Rotation done using setRotation() does not combine with transformations. The old rotate() did combine with existing transformations.
The proper equivalent of
item->rotate(angle);
is
item->setTransform(QTransform().rotate(angle), true);