PDA

View Full Version : Image Zooming



navi1084
16th September 2008, 12: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.

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

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