0

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

unice
  • 2,655
  • 5
  • 43
  • 78

1 Answers1

0

Q*Layouts 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 QWidgets.

Avaris
  • 35,883
  • 7
  • 81
  • 72