QTreeView remove dotted line when selected
Solved
General and Desktop
-
wrote on 2 Nov 2019, 14:57 last edited by
Hey
Does any1 know how to control it/remove it? Style/function/paint event?
Regards
Dariusz -
Lifetime Qt Championwrote on 2 Nov 2019, 16:45 last edited by mrjj 11 Feb 2019, 16:48
Hi
It can be removed with (maybe) stylesheet or delegateSee SeitsemaN post how the delegate could look.
-
You have to clear State_HasFocus somehow. The easiest way I see is to create a proxy style which removes this flag before passing it to drawControl.
-
Hi
It can be removed with (maybe) stylesheet or delegateSee SeitsemaN post how the delegate could look.
wrote on 3 Nov 2019, 13:48 last edited by -
wrote on 16 Jul 2020, 08:38 last edited by
Thanks @SeitsemaN for this solution,
*{outline: none;}This works well. I wasted like 8hrs on this.