I want to be able to set the Text (foreground) colors - normal and highlighted, on a single entry in a QTreeView. Is there some way to obtain the QPalette of the given entry if a have a QModelIndex to it?
Thanks
Doug
I want to be able to set the Text (foreground) colors - normal and highlighted, on a single entry in a QTreeView. Is there some way to obtain the QPalette of the given entry if a have a QModelIndex to it?
Thanks
Doug
Make data() return a custom color for Qt::ForegroundRole.
J-P Nurmi
Bookmarks