I am using PyQT 4.8.3 to create a dialog with two QListWidgets both allowing multiple selection.
I find that if these QListWidgets are enabled, the selected items are highlighted in blue only when the QListWidget has focus, without focus the highlight is light-grey.
I also find that if the QListWidgets are disabled, the selected items are highlighted in blue despite lack of focus.
As the users go from one list to the other they will find this very confusing.
As a developer I find the light-grey/unfocused, blue/disabled behaviours undesirable. I would appreciate any advice on modifying them.
I've looked through the docs for QListWidget, QListView and QAbstractView without finding anything applicable, I have also looked through the stylesheet documentation without having any luck.
:active
,:!active
and:disabled
pseudo-states combined with:selected
for::item
would practically provide any customization option. I didn't want to add an answer, since you already had one mentioning stylesheets :). – Lindholm