<SOLVED> Adding an annotation to the header row in qtableview
-
wrote on 30 Apr 2015, 13:46 last edited by GrahamL 5 Jun 2015, 07:54
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
-
wrote on 5 May 2015, 08:50 last edited by
Thanks
I'll give it a go when I get some time -
wrote on 5 May 2015, 08:52 last edited by
How do I mark the topic solved?
-
Either using the Topic Tool menu or just edit the thread title prepending [solved]
1/5