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);
Attachments
For Gerrit Dashboard: QTBUG-39027 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
98407,2 | Doc: corrected wrong equivalent of obsolete QGraphicsItem::rotate | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |