Unsolved dotted border ?
-
how can i disable dotted border arround selected cell on QTableView ?
-
@Duy-Khang have you tried setSelectionMode() or it will not do the job for you?
-
thank you, I have just tried change focusPolicy from StrongFocus to NoFocus and it works !
-
@artwaw Initially,I set header background color is red and when i select a row then header change to another color, why section header background color changes when i select a row in table view.
-
@Duy-Khang I am sorry but that's the knowledge I don't have - never felt the urge to change the defaults. Perhaps someone who knows more about the front-end part of Qt will drop in with a help.
-
@Duy-Khang
Confirm yourSelectionBehavior
is set toQAbstractItemView::SelectRows
, not defaultQAbstractItemView::SelectItems
? Confirm the header you select is indeed vertical not horizontal?