When using qlistview in icon mode, I need to completely remove hightighting when selecting an icon. Using the code below, the text below the icon no longer stands out, but I still get a blue color above the icon when I select
QString stylesheet = ""; stylesheet += "QListView::item:alternate {background-image: transparent; background-color: transparent;}"; stylesheet += "QListView::item:selected {background-image: transparent; background-color: transparent;padding: 0px;color: black;}"; stylesheet += "QListView::item:selected:active{background-image: transparent;background-color: transparent; color: black;}"; stylesheet += "QListView::item:selected:!active{background-image: transparent;background-color: transparent;color: black;}"; setStyleSheet(stylesheet);
Does anyone know how to change the selected color above the icon without subclassing QStandardItem?
highlighting selected qt icons qlistview
Bret jones
source share