QHeaderView doesn't seem to use delegates.
And unfortunately it seems like QHeaderView doesn't lay it's index widgets correctly:
QModelIndex idx
= horizontalHeader
()->model
()->index
(0, column
);
horizontalHeader()->setIndexWidget(idx, someWidget);
QModelIndex idx = horizontalHeader()->model()->index(0, column);
horizontalHeader()->setIndexWidget(idx, someWidget);
To copy to clipboard, switch view to plain text mode
The widget will be there, but it's position is (0,0) and size (0,0). So you will have to resize and move it manually.
This could be, in my opinion, reported to Trolltech..
Bookmarks