using setScale function relative to a custom point
-
I have an item and I am zooming to some specific regions of this item. Zoom In and Zoom out is achieved by setScale function().
the documentation says:
The item is scaled around its transform origin point, which by default is (0, 0). You can select a different transformation origin by calling setTransformOriginPoint().
So I don't want to zoom always relative to (0,0) point. however using setTransformOriginPoint() function changes the coordinates of elements belonging to my main item.
How can I zoom to a custom point without changing element coordinates inside ?