qt样式表未生效
样式表:
QPushButton
{
padding-left: 2px;
padding-right: 10px;
border-radius: 3px;
color:rgba(54, 143, 205, 1);
border: 2px solid rgba(54, 143, 205, 1);
background-color: transparent;
}
QPushButton : hover {background-color: rgba(49, 131, 186, 1);}
QPushButton : pressed {background-color: rgba(49, 131, 186, 1);}
问题:上述样式表的悬停按下未生效
解决方法:去除控件与选择器间的空格再次运行即可生效