Qt 6.11 is out! See what's new in the release
blog
How to get rid of the light blue background from "current" item?
-
In a QListView, one item has "current" status. This status is poorly documented. It somehow differs from the "selected" property, and cannot be suppressed by
setSelectionMode(QAbstractItemView::NoSelection).This "current" status is annoying because it shows up in a light blue background that overrides my own BackgroundRole settings in my model's
datafunction (or produces some mixed color).How to
-
either disable the "current" status altogether,
-
or prevent it from showing up as a background color?
The light blue background disappears if the application looses focus; therefore I see no way to capture it in a screen copy.
-
-
Hi,
This question on Stack Overflow might help: