Results 1 to 1 of 1

Thread: How to implement Table having mulitple headers for rows and columns.

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

    Default How to implement Table having mulitple headers for rows and columns.

    Hi,

    I want to create a custom control which supports multiple header for rows and columns. Please have a look into attached image. Also rows and columns of a table can be grouped by clicking on row/column header.

    For ex:
    Table.jpg

    I want to use model/view features of Qt for this.
    One thought is that I can have QTableView + QAbstractItemModel. And For row and column headers I can use separate QTreeView + QAbstractItemModel. So the hiding of rows and columns when user does collapse/expand on row or column header needs to be handled manually.

    I am still new to Qt. So I want suggestions for implementing this kind of control in Qt.
    Which kind of Qt's view and model should I use, so that maximum features provided by Qt can be used?
    Last edited by Hetal; 4th May 2011 at 15:26.

Similar Threads

  1. Replies: 1
    Last Post: 24th February 2011, 06:54
  2. Model/view, apply a filter on model
    By remy_david in forum Qt Programming
    Replies: 4
    Last Post: 4th February 2011, 18:13
  3. Replies: 0
    Last Post: 21st April 2010, 13:23
  4. Replies: 1
    Last Post: 1st February 2010, 19:42
  5. QSql Model-View: How to keep view in sync with model
    By schall_l in forum Qt Programming
    Replies: 1
    Last Post: 23rd December 2008, 00:31

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.