Qt:在QtableView上设置边框底部会禁用selection-background-color

时间:2014-03-10 05:49:36

标签: c++ qt qtstylesheets

我目前在QtableView样式表

中有类似的内容
QTableView::item 
{
     selection-background-color: rgb(85, 85, 127);
     border-bottom: 1px double #8f8f91;
 }

现在问题是selection-background-color: rgb(85, 85, 127);仅在border-bottom: 1px double #8f8f91;被禁用时才会产生效果。有什么建议??

1 个答案:

答案 0 :(得分:0)

如果要进行自定义,则应指定任何border属性。不是QSS的具体内容:

border: 0px solid transparent; // Or any other border
相关问题