View Full Version : Image Zooming

16th September 2008, 13:02
I have a widget which contains a fit-to-sized image. I have drawn some shapes in images
So when i resize the image to some scale, i need to resize the shapes and the position of the shapes(ex: topleft) should doesnt change when it is resizing. Can anyone tell is there any Qt function to do this???
I have attached the image and resulting resized image output.
Thank You in advance.

16th September 2008, 13:34
what are u using to draw the shapes ??

16th September 2008, 13:48
i am tracking the mouse co-ordinates and in paintEvent drawing the rect using drawRect() as per mouse coordinates .