On an image(x by y), a QGraphicsRectItem is added, Let say Qrect(73, 77, 43, 28) Qrect(x,y,w,h). After resizing the image to 128 by 32, how this QGraphicsRectItem can be redrawn with proper co-ordinates.

The image is first resized, and then the graphicsRectItem to be added.

How a qrect can be mapped with respect to the image resized?