ItemIgnoresTransformation flag results in shifted item when scaling
<p>I have a QGraphicsRectItem object, <code>box</code> placed on a scene, which is a parent to a QGraphicsEllipseItem object, <code>circle</code> that is placed on the bottom right hand corner via <code>circle.setPos(box.rect().bottomRight())</code> in the overriden <code>paint</code> method of the QGraphicsRectItem:</p>

<p><a href="https://i.stack.imgur.com/lDF0e.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lDF0e.png" alt="enter image description here"></a></p>

<p>I am trying to prevent the QGraphicsEllipseItem from changing size when the view is scaled by setting the <code>QGraphicsItem.ItemIgnoresTransformations</code> flag. This however causes the placement of this item relative to its parent to be shifted when the view is scaled i.e.:</p>

<p><a href="https://i.stack.imgur.com/Yq8G9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yq8G9.jpg" alt="enter image description here"></a></p>

<p>How can I prevent the QGraphicsEllipseItem from scaling yet keep its position relative to the parent intact?</p>