You are passing imageLabel as parent of rubberband instead of this(ImageMarker) and hence the coordinates differ. Try setting this as rubberBand's parent.
Another way is to map event->pos() to the imageLabel if you want rubberBand's parent to be imageLabel.
Please wrap the code you post with code tags![]()
Bookmarks