PDA

View Full Version : QTableView + column span of headers



NoRulez
11th November 2009, 12:59
Hi,

i want to to something like the following:


-----------------------------------------------------------------
| Date | Time | Description |
| | Start | End | |
-----------------------------------------------------------------
| 2009-11-11 | 09:00:00 | 11:45:00 | Something useful |


So that i have 2 header rows, which are row spanned (Date, Description) and 2 header columns which are column spanned (Time)

Could anybody help to get this working or how to do this?

Thanks in advance

Best Regards
NoRulez

Lykurg
11th November 2009, 13:20
one possibility would be HierarchicalHeaderView: http://qt-apps.org/content/show.php/HierarchicalHeaderView?content=103154

NoRulez
11th November 2009, 15:29
Thank you, i've tried it... but with this, there are still 2 problems:

1.) The headers aren't selectable
2.) How can i remove the "root" header

Best Regards
NoRulez