Results 1 to 3 of 3

Thread: QTableView + column span of headers

  1. #1
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default QTableView + column span of headers

    Hi,

    i want to to something like the following:
    Qt Code:
    1. -----------------------------------------------------------------
    2. | Date | Time | Description |
    3. | | Start | End | |
    4. -----------------------------------------------------------------
    5. | 2009-11-11 | 09:00:00 | 11:45:00 | Something useful |
    To copy to clipboard, switch view to plain text mode 

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: QTableView + column span of headers

    one possibility would be HierarchicalHeaderView: http://qt-apps.org/content/show.php/...content=103154

  3. #3
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Re: QTableView + column span of headers

    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

Similar Threads

  1. spaning the headers in the QTableView
    By ru_core in forum Qt Programming
    Replies: 6
    Last Post: 11th June 2013, 14:17
  2. How to remove headers from QTableView.
    By rajeshs in forum Qt Programming
    Replies: 7
    Last Post: 18th November 2011, 21:00
  3. QTableView column trouble
    By nategoofs in forum Qt Programming
    Replies: 6
    Last Post: 27th October 2009, 21:14
  4. QTableView column header is invisible
    By grsandeep85 in forum Qt Programming
    Replies: 2
    Last Post: 20th October 2009, 13:04
  5. QTableView + QSqlQueryModel column alignment
    By frido in forum Qt Programming
    Replies: 1
    Last Post: 22nd July 2008, 07:12

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.