标签: qt background-color qwidget
我有一个父QWidget,其中包含一些使用布局管理的子窗口小部件。当我设置父亲的背景颜色时,它不会覆盖孩子附近的某个区域 - 例如圆形QScrollBar和QSpinBox周围的框架。有没有办法让父母的背景完全覆盖孩子的无内容区域?
答案 0 :(得分:1)
更改对象边框。
http://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qspinbox http://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qslider
有关于使用样式表更改外观的示例。