Hi,
I'm displaying an image on a QLabel. When I resize the mainWindow, the QLabel is not resized so I can't resize the image that is shown in it.
Thanks,
Hi,
I'm displaying an image on a QLabel. When I resize the mainWindow, the QLabel is not resized so I can't resize the image that is shown in it.
Thanks,
Òscar Llarch i Galán
Provide more information, please. Are you using layouts? Have you noticed QLabel::scaledContents?
J-P Nurmi
Hi,
Yes, I'm using layouts. On "resizeEvent" I take the QLabel width and height and I create a QImage scaled with this width and height because the images are very big and I want to show the full image in the avaiable space of the QLabel.
Thanks,
Òscar Llarch i Galán
Bookmarks