Is there a way to not modify the size of QLabel when a QPixmap is loaded in it? And the contents were shrinked
Thanks
Is there a way to not modify the size of QLabel when a QPixmap is loaded in it? And the contents were shrinked
Thanks
you can use QPixmap::scaled(int height, int width) to resize your pixmap and then set it to the QLabel.
Mithin
www.mithin.in
It works, but now the widget dont resize. I want to strecht it with the dialog
The label must be inside a layout which you would then set as dialogs layout. In designer, you can select the top level layout for the dialog from the context menu of the dialogs background.
J-P Nurmi
Bookmarks