PDA

View Full Version : how to zoom image by resize the form without using QGraphicsView?



chong_kimkeang
9th October 2012, 10:13
My app contain two images, one is the image(1) background that I can zoom by the form re-size and the other is the image(2) that is over the image background. So I don't know how to zoom the image(2) inside the form. How can I zoom it if it is over the background like this by not using QGraphicsView?

Santosh Reddy
9th October 2012, 13:32
Assuming you are using QPixmap/QImage, scaledToHeight(), scaledToWidth()