PDA

View Full Version : Which is best way to implement multilevel header Table control?



Hetal
10th May 2011, 11:15
Hi,

I want to create a custom control having multilevel header in table.

For showing multilevel header there are two approaches:
1) Subclass Header View to display multilevel header.
one which is shown in http://qt-apps.org/content/show.php/...content=103154.
2) Use another table view to display header,hide it vertical and horizontal header, and then use setSpan() method to merge cell, which can be used to display a parent header.

Both will work to have multilevel header table. But which approach is more efficient and why?

Thanks.

ars
10th May 2011, 19:58
You may look at
http://qt-apps.org/content/show.php/HierarchicalHeaderView?content=103154 (Hierarchical Header View).