アイコンモードでqlistviewを使用する場合、アイコンが選択されているときにハイライトを完全に削除する必要があります。アイコンの下のテキストの下のコードを使用しても強調表示されなくなりましたが、選択するとアイコンの上に青色が表示されます
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);
QStandardItem をサブクラス化せずにアイコン上で選択した色を変更する方法を知っている人はいますか?