I'm developing a software using Qt. I have a QGraphicsView that can be resized.
I want to let users load an image (some maps) as the background of the view and be able to place some markers on the image (QGraphicsPixmapItem) and move them around. The positions of the markers on the image are important to be kept since they are markers on the map.
If users try to resize the view by resizing the window, the image will be also resized. So the markers will not be at the previous positions of the map.
It seems that the markers positions should also be scaled to the view.
For example check out this image. There are 4 markers on the map:
After making the view full-screen (without changing items position):
So my question is how to fix items position on the map even while resizing?