C++ (Qt)setScenePos(const QPointF & pos){ if (!parentItem()) { setPos(pos); return; } setPos(parentItem()->mapFromScene(pos));}