Results 1 to 2 of 2

Thread: Which is best way to implement multilevel header Table control?

  1. #1
    Join Date
    May 2011
    Posts
    7
    Qt products
    Qt4

    Default Which is best way to implement multilevel header Table control?

    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.

  2. #2
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    120
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Which is best way to implement multilevel header Table control?

    You may look at
    http://qt-apps.org/content/show.php/...content=103154 (Hierarchical Header View).

Similar Threads

  1. Replies: 0
    Last Post: 4th May 2011, 12:33
  2. Best way to implement a table in a QGraphicsScene?
    By roband915 in forum Qt Programming
    Replies: 3
    Last Post: 31st March 2011, 11:56
  3. Editable table header
    By bbarran in forum Qt Programming
    Replies: 4
    Last Post: 9th December 2010, 10:26
  4. Replies: 4
    Last Post: 26th October 2009, 22:25
  5. How can i set a delegate on header in table
    By ankurjain in forum Qt Programming
    Replies: 1
    Last Post: 16th May 2006, 13:04

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.