c++ - Qt 怎么在用ui设计时添加背景图片而且不让上面的控件继承背景图片?
ringa_lee
ringa_lee 2017-04-17 13:19:02
0
3
1095


我用的是样式表,但是其他控件的背景都继承了背景图片= =

ringa_lee
ringa_lee

ringa_lee

reply all(3)
PHPzhong

Is there no one there? = =

巴扎黑

If the objectName of this control is a, then the stylesheet should be set like this

#a {border-image: url(:/pic/blue.jpg)}

Refer here

迷茫

As Tong upstairs said, you can set the style for a given control by specifying the control name when setting the style. Such as .QWidget#myname{backgound:xxx;}

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template