<SOLVED> Adding an annotation to the header row in qtableview
General and Desktop
5
Posts
2
Posters
1.5k
Views
2
Watching
-
Hi
I have been given a requirement that on a table view there should be a small icon in addition to the heading text. This icon will appear and disappear depending on application state.
Could anyone please give some pointers on how to implement this?Thanks
-
Hi
Since it's a QTableView, I suppose you have a custom model ? Unless I'm mistaken you can reimplement the headerData function and return an icon for the Qt::DecorationRole
Hope it helps
-
Either using the Topic Tool menu or just edit the thread title prepending [solved]