How to set stylesheet for a single item in the Qlistview?
-
I have a QListView containing QStandardItems . How to set stylesheet for a single item in the Qlistview based on the QModelIndex acquired?
-
For a specific item you shoul use "QStyledItemDelegate":http://qt-project.org/doc/qt-4.8/QStyledItemDelegate.html or overwrite the QListView::data() and filter inside. The first option is better.