Hi
This sounds very simple, but I can not figure it out...
I need to display an image on a dialog as a part of the layout and the image should preserve the aspect ratio when the dialog size is changed and the QLabel geometry is changed accordingly. I tried to use QLabel for this, but it does not seem to be able to scale the image proportionally. Is there any other solution?
Thanks
Anton


Reply With Quote

Subclass QLabel and scale the Pixmap properly in resizeEvent();

Bookmarks