Qt : Setting a border bottom on QtableView disables selection-background-color

StackOverflow https://stackoverflow.com/questions/22292915

  •  12-06-2023
  •  | 
  •  

Вопрос

I currently have something like this in my QtableView stylesheet

QTableView::item 
{
     selection-background-color: rgb(85, 85, 127);
     border-bottom: 1px double #8f8f91;
 }

Now the problem is the selection-background-color: rgb(85, 85, 127); takes effct only if border-bottom: 1px double #8f8f91; is disabled. Any suggestions ??

Это было полезно?

Решение

You should specify any border attribute if you want suck customization. Is't specific of QSS:

border: 0px solid transparent; // Or any other border
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top