SetTransformOriginPoint not working as expected

I so inherited from the QGraphicsObject and created a new class that has a pixmap and sets its transform origin point to:

@setTransformOriginPoint(boundingRect().center());@

... 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.