我想隐藏出现在QToolButton
上的Small Down Arrow
,如果我给它设置了QMenu
。在
我尝试过使用StyleSheet
,方法是将QToolButton
menu-arrow
image设置为none。以下是我的Qss代码:
QToolButton
{
border:1px solid #B6C4DB;
border-radius:12px;
padding:2px;
margin-left:5px;
}
QToolButton::menu-arrow
{
image:none;
}
QToolButton:pressed
{
border:1px solid #D6BB0B;
}
有没有办法用菜单隐藏QToolButton
上的小箭头?在
发布我的评论作为潜在答案(至少目前): 看起来这是一个bug,但this page列出了一个解决方法
相关问题 更多 >
编程相关推荐