아이콘 모드에서 qlistview를 사용할 때 아이콘을 선택했을 때 나는 완전히 hilighting을 제거해야합니다. 아이콘 아래에있는 텍스트 아래의 코드를 사용하여 은 더 이상 강조하지 않고Qt를 변경하는 방법 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를 서브 클래 싱 할 필요없이 아이콘 위에 선택한 색상을 변경하는 방법을 알고 있나요?
Qt의 버전은 무엇입니까? 나는 4.7.1을 실행 중이고 스타일 시트가 없어도 아이콘이 전혀 강조 표시되지 않는다. – Liz