0

In my interface, I would like to not display the dotted lines/rectangle around the currently selected item.

I read online that there was no way to do this with stylesheets, and the best way was to create a new class to override the paint method, as suggested in this link.

However, it would be great to do without having to create a whole other class.

1 Answers1

4

Turns out in many cases it is possible, by simply setting QListWidget::focusPolicy to NoFocus, as suggested here.