Unsolved how to change style on a selected row
-
Hello everybody,
When I select a row from a table I want that row to has only border. I already did this
QTableView::item:selected {
border: 2px solid red;
}in a external .css file but it doesn't work. What do you suggest?
-
Hi
in what way " but it doesn't work."You can try
setStyleSheet("QTableView {selection-background-color: transparent;}");Im not sure what look you are after.
-
I want the selected row not to have a background color but red border. And by "it doesn't work" I mean that I don't get any border
-
@Suzy-Q
Hmm. Strange.
QTableView::item:selected {
border: 2px solid red;
}
works for me.. -
I am sorry this is what I get.
-
@Suzy-Q
Hi. Image upload is broken here. so I cant see your picture. Please use external site.