Home > Mobile >  Qt add background does not affect the control, and bosses
Qt add background does not affect the control, and bosses

Time:10-14

With frame may also affect controls, baidu, a lot of way doesn't work, help

CodePudding user response:

Any questions, describe clearly

CodePudding user response:

Is by changing the form of table approach to interface to add background, all controls within the interface will be affected

CodePudding user response:

The trouble specifies which east background try change, such as QLabel, first setObjectName (" label1 "); Then the setStyleSheet (" QLabel# label1 {background:??? }
")
Is your stylesheet is not {background:? "" }, or {" QWidget {background:? }} "?

CodePudding user response:

refer to the original poster qq_38621899 response:
with frame may also affect controls, baidu, a lot of way doesn't work, help


UI that have centerWidget can, you can change it stylesheet,

CodePudding user response:

Set in front of the style sheet specifies your objectname is ok setStyleSheet (" QLabel# label1 {color: red} ")
  •  Tags:  
  • Qt
  • Related