[Interest] How to change parent of scaled QGraphicsItem while retaining scene bounding rect?
Christian Gagneraud
chgans at gmail.com
Wed Aug 8 03:24:08 CEST 2018
On 8 August 2018 at 11:08, Patrick Stinson <patrickkidd at gmail.com> wrote:
> Hello!
>
> I am trying to change the parent of a QGraphicsItem without it appearing to move or change size on the scene. Both the item, old parent, and new have arbitrary scale values set. How can this be done?
If you grab the item's sceneTransform() before re-parenting, you
should be able to deduce it's new local transform from it's new parent
sceneTransform().
>
> Thanks!
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list