Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hey
Does any1 know how to control it/remove it? Style/function/paint event?
Regards Dariusz
Hi It can be removed with (maybe) stylesheet or delegate
https://forum.qt.io/topic/18888/how-to-remove-focus-rectangle-on-qlistview-and-similar-using-qstyleditemdelegate-with-style-sheets
See 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.
@mrjj said in QTreeView remove dotted line when selected:
SeitsemaN
Worked like charm, thanks!
Thanks @SeitsemaN for this solution, *{outline: none;}
This works well. I wasted like 8hrs on this.