I'm trying to shear a QGraphicsItem with a custom transformOriginPoint, but there is no QGraphicsItem::setShear (like there is for rotation: QGraphicsItem::setRotation).
I realize I could create my own transform matrix and use QGraphicsItem::setTransform, but it doesn't seem to take into account the transformOriginPoint, which in my case is not (0,0).
For example, the following two examples produce completely different behavior:
// takes into account the transformOriginPoint
myItem->setRotation(30);
// takes into account the transformOriginPoint
myItem->setRotation(30);
To copy to clipboard, switch view to plain text mode
// does not take into account the transformOriginPoint
QTransform hi;
hi.rotate(30);
myItem->setTransform(hi);
// does not take into account the transformOriginPoint
QTransform hi;
hi.rotate(30);
myItem->setTransform(hi);
To copy to clipboard, switch view to plain text mode
Bookmarks