Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
SetTransformOriginPoint not working as expected
tarantulae last edited by
I so inherited from the QGraphicsObject and created a new class that has a pixmap and sets its transform origin point to:
... but when I call setRotation() on the my class (which is added to a QGraphicsView), the rotation doesn't use the center as the rotation anchor. How can I set the center to be the anchor of the rotation ? Thanks !
More information: calling setRotation() outside of a sceneEvent function it works fine, but inside a sceneEvent, upon a pinch gesture, the origin point doesn't work.