Hello.

I have a layout consists in one QLabel that contains a QPixmap. Because MainWindow is resizable, I want this QLabel resizable too. To obtain this I put the widget into a QScrollArea and later I have a Grid with this widget and another things like a group of labels, text boxes and so on. Finally I use setScaledContents(true) to resize the contens of the QLabel automatically.
But I have a expanded resize of QPixmap that doesn't preserve the aspect ratio.

How can I resize a QLabel (a QPixmap that resides into a QLabel) and preserve aspect ratio?

Thank you very much in advance.