2 years ago

#60986

test-img

Ony10

QTreeWidget Item disable text underline when selection is cleared

I am trying to disable the remaining item text underline that shows up when deselecting an item from a QTreeWidget.

setFocusPolity(Qt::NoFocus);

does what I need but it disables keyboard arrow navigation which is something I want to have.

I haven't found what property I need to disable in the StyleSheet. I have been messing around with

setStyleSheet(QTreeview::item:focus:!selected {...});

Any Idea? Thank you.

qt

qtreeview

qtstylesheets

qtreewidget

0 Answers

Your Answer

Accepted video resources