Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Fit a large image as a background to QWidget
Arus1 last edited by
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?
vikaspachdha last edited by
Use border properties in style sheet to leave some border or override paintEvent in Qwidget to draw the scaled pixmaps.
thEClaw last edited by
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.