Monday, 20 May 2013

Scale QGraphicsItem About an Arbitrary Point

Scale QGraphicsItem About an Arbitrary Point

I'm trying to scale an object about the mouse cursor. I'm getting the mouse position easily enough, and I can scale the object no problem using item->setScale(n). However, I'm not sure how to actually incorporate the translation to account for the arbitrary point.
Is there a way to set the scale center? If not, how should I go about doing this?

No comments:

Post a Comment