我目前在我的 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;
时才会生效被禁用。有什么建议吗??
最佳答案
如果你想进行糟糕的定制,你应该指定任何边框属性。不特定于 QSS:
border: 0px solid transparent; // Or any other border
关于c++ - Qt : Setting a border bottom on QtableView disables selection-background-color,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22292915/