c++qtqtreeviewqstylesheet

QTreeView disable highlighting on a row hover


I don't want rows to be highlighted on mouse hover. How to disable this highlighting?

enter image description here

Either remove highlighting at all or change it's color: both solutions are fine.


Solution

  • tView->setStyleSheet("QTreeView::item:hover{background-color:rgb(255,255,255);}");