Program I develop is interactive editor. So, setPos() and rotate() are used frequently in the order which user decides.
By sceneBoundingRect() I detect item position in scene relating to other items to estimate correct user's interactive move by mouse.
So, how to setPos() correctly after rotating item around its center? setPos() I mean to set item position programmatically.
Should I decrease value by item->transform().dx() and item->transform().dy() ?
Also it is necessary to take care of signs (decrease or increase)
In my case items do not have parents.
Bookmarks