Fit a large image as a background to QWidget
-
An image should be shown twice smaller on QWidget but it should not cover the whole widget.
Is it possible to change size of the image when setting stylesheet or set QIcon/QPixmap to QWidget?
Thanks. -
Use border properties in style sheet to leave some border or override paintEvent in Qwidget to draw the scaled pixmaps.
-
Either use a stylesheet on the widget (you have a couple of options for background images) or overwrite the widgets "paintEvent()":http://qt-project.org/doc/qt-5/qwidget.html#paintEvent . In there you have full control over how the widget is drawn to the screen - but you have to be careful to not waste too many resources.