Why i can't change selection item color in QListWidget?
-
I try to change selection item color in QListWidget but my styleSheet not working right on selection.

My styleSheet:
background-color: #1c1919; border: 0; color: white; QListWidget::item:selected { background-color: #db1d5c; } -
@Rezistence said in Why i can't change selection item color in QListWidget?:
QListWidget::item:selected
"QListView::item:selected { background-color: green; }" this works for Qt 5.15.2 on Ubuntu 18
-
@Rezistence said in Why i can't change selection item color in QListWidget?:
QListWidget::item:selected
"QListView::item:selected { background-color: green; }" this works for Qt 5.15.2 on Ubuntu 18
@JoeCFD said in Why i can't change selection item color in QListWidget?:
QListView::item:selected { background-color: green; }
I use QT ver. 6 and try this, not working.
-
@JoeCFD said in Why i can't change selection item color in QListWidget?:
QListView::item:selected { background-color: green; }
I use QT ver. 6 and try this, not working.
@Rezistence Try the latest Qt6 version. Good luck!
-
@Rezistence Try the latest Qt6 version. Good luck!
@JoeCFD I'm using the latest QT version and unfortunately this option doesn't work.