Hi to all,
I have a QMainWindow with a custom central widget. I set a background image for that
central widget.
I would keep the aspect ratio while resizing to preserve the aspect ratio of the background image.
How can I do?
Best Regards,
Franco
Hi to all,
I have a QMainWindow with a custom central widget. I set a background image for that
central widget.
I would keep the aspect ratio while resizing to preserve the aspect ratio of the background image.
How can I do?
Best Regards,
Franco
Franco Amato
Will an implementation of QWidget::heightForWidth(int) help you? If not, then maybe a custom layout manager.
Bookmarks