Hello,
In my QGraphicsScene I have a QGraphicsItem ( the red rectangle) and a QGraphicsLineItem. I can also change the scale of the view but my QGraphicsLineItem ignores the scale changes : to achieve that I used the following line of code:
Qt Code:
myQGraphicsLineItem->setScale(1.0/scaleOfView);To copy to clipboard, switch view to plain text mode
So the two items don't have the same scale.
Unfortunately when the scale of the view changes, the relative position of my two items changes ( see the two captures) even if the scene positions of the two items remain the same . Do you understand why ?
Capture2.JPGCapture1.JPG
Thank you
Bookmarks