qgridlayout background image? pyqt4
-
02-06-2021 - |
Pregunta
Is it possible to load a background image in qgridlayout? I have a couple of button inside a gridlayout, i wan to load a background image depending on the size of the whole gridlayout. thanks
Solución
Q*Layout
s are not widgets, so no, you can't put a background on them. However you'll (probably) have a widget that'll have your layout. You can put a background on it. See the setStyleSheet
method for QWidget
s.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow