Remove border in pseudo states
Solved
General and Desktop
-
Hi, y'all!
I have a QTreeView component which I do not require any borders on the QTreeView its items. The problem is the border still occurs when I press the item or is already being selected. None of the underneath code lines works and still show some kind of border with slight opacity of its background color.
QTreeView { border: none; }
QTreeView::item::pressed { border: 0px solid transparent; }
QTreeView::item::selected{ border: 0px solid transparent; }
This kind of behavior with the border seems to be done by default because it seems QPushbutton including an image behaves the same way. Any ideas on how to remove or disable the border in QTreeView its pseudo-states somehow?