Hi,
I'm doing a GUI to visualize images and then, to operate with them. I'm doing it with QDialog and QPushButtons, mainly.
I load an image file and represent it by means of QImage and QPaintEvent in two diferents frames. I'm using QPaintEvent for representing the loaded image and this function is adjusting the image size in the frame. In the second one I want to zoom in/out the image. I've tried to do this with "image.scaled()" in a created function zoomin/out that it's called when you click a button in the Dialog, but nothing happens with it.
I think it happens because when QPaintEvent is called, it uses the same image as that loaded at the beginning, and any change is observed.
What change should I do to make a zoom in the loaded image?
Bookmarks