Qt-interest Archive, March 2008
How to create custom header items for a table wiget
Message 1 in thread
I've tried everything, and nothing works.
I want to create a QTableWidget (or TableView) with custom header items
I created my own QItemDelegate, own horizontal header from QHeaderView, and my own Item from QTableItem. But nothing I have tried will result in MyItemDelegate's paint event from being called.
Does anyone know of application, KDE or otherwise, that creates custom column headers. Any advise much appreicated.
David
Message 2 in thread
Hi
QHeaderView is not a fully-featured item view. I mean, it doesn't
actually use delegates. Reimplement QHeaderView::paintSection() for
custom rendering of header sections.
--
[ signature omitted ]