Remove the light blue overlay on the icon in QListWidget IconMode.
-
When a thumbnail item is selected, the thumbnail is covered with a translucent light blue color.
How to remove the light blue overlay on the selected thumbnail in QListWidget IconMode?QListWidget::item{ color: black; } QListWidget::item::selected::active{ color:yellow; background-color: transparent; } QListWidget::item::selected::!active{ color:yellow; background-color: transparent; }
-
@wuj10n said in Remove the light blue overlay on the icon in QListWidget IconMode.:
::selected::active
::selected::!active
Review the syntax of these in List of Pseudo-States. Your syntax is wrong.
-
@JonB
"I modified the code, but the problem remains. The light blue color on the icon still exists when it is selected.".QListWidget::item{ color: black; } QListWidget::item:selected:active{ color:yellow; background-color: transparent; } QListWidget::item:selected:!active{ color:yellow; background-color: transparent; }
-
Do you need it to not appear at all? or is it okay for it to appear then get removed?
Also, how do you select a thumbnail? And what happens when you select a thumbnail?
Or is this just a gallery, a display or something like that where you don't want anything to happen?
Mentioning your use case would make it more clear to us, and help us suggest an approach that works for what you're trying to do.