Qt主题开发过程遇到的小问题
控件
1、Horizontal Line 不显示
解决:在属性栏中,将frameShadow属性改为Sunken。如下图:
2、如果是用Delegate划线不显示,可能是sizeHint()中矩形框的高度设置不合适。如下图:
StyleSheet
1、QLabel统一样式表语法:
QLabel
{
font: 20px;
color: rgb(176, 176, 176);
}
2、QPushButton
特定按钮
#pushButton01,#pushButton02,#pushButton03
{
background-color: rgb(48, 48, 48);
border: 0px splid;
background-position: center;
background-repeat: no-repeat;
}
3、QWidget
#backgroundWidget
{
background-color: rgb(27, 27, 27);
}
4、Horizontal Label
#line,#line_2,#line_3
{
background-color: rgb(48, 48, 48);
}