Hi all,
i want to set a combo delegate on header. i used
Qt Code:
horizontalHeader()->setItemDelegate(new ComboDelegate)To copy to clipboard, switch view to plain text mode
but i couldn't get it on header.
how can i set it ?
Hi all,
i want to set a combo delegate on header. i used
Qt Code:
horizontalHeader()->setItemDelegate(new ComboDelegate)To copy to clipboard, switch view to plain text mode
but i couldn't get it on header.
how can i set it ?
Last edited by ankurjain; 16th May 2006 at 12:12.
Do what u r afraid to do, and the death of fear is sure.
QHeaderView doesn't seem to use delegates.
And unfortunately it seems like QHeaderView doesn't lay it's index widgets correctly:
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.Qt Code:
horizontalHeader()->setIndexWidget(idx, someWidget);To copy to clipboard, switch view to plain text mode
This could be, in my opinion, reported to Trolltech..
J-P Nurmi
Bookmarks