Results 1 to 2 of 2

Thread: QHeaderView as a banner

  1. #1
    Join Date
    Aug 2006
    Location
    Madison, WI USA
    Posts
    153
    Thanks
    35
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Question QHeaderView as a banner

    Greetings,

    My program (using 4.2.2) uses a pair of QTableWidget objects to display my data. I would like to add a horizontal banner above the normal horizontal QHeaderView row provided by my QTableWidget (kind of a stacked horizontal QHeaderView). This banner would help to partition the cells of the QTableWidget into discrete sections.

    After searching the help files and this forum it appears that I must switch to QTableView in order to add another QHeaderView row to my table. Is this correct or is there a way to add a banner using QTableWidget?

    Thanks for considering this question.

  2. #2
    Join Date
    Jan 2006
    Location
    Edmonton, Canada
    Posts
    101
    Thanks
    13
    Thanked 6 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QHeaderView as a banner

    QTableWidget extends QTableView, so there's no reason why you can't use either one for this.

Similar Threads

  1. Renumbering Row Headers of QHeaderView
    By mclark in forum Newbie
    Replies: 4
    Last Post: 11th September 2006, 15:04
  2. [itemView] QHeaderView lose mapping at column insertion
    By lauranger in forum Qt Programming
    Replies: 1
    Last Post: 16th August 2006, 18:18
  3. QMenu in QHeaderView
    By munna in forum Qt Programming
    Replies: 9
    Last Post: 15th July 2006, 14:58
  4. Custom QHeaderView in Qt 4.1.1
    By Tair in forum Qt Programming
    Replies: 2
    Last Post: 11th July 2006, 09:44
  5. subclassing QHeaderView
    By chemstar in forum Qt Programming
    Replies: 7
    Last Post: 22nd May 2006, 12:34

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.