Results 1 to 3 of 3

Thread: Custom QHeaderView with multiple header rows and comboBox

  1. #1
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows
    Thanks
    75
    Thanked 24 Times in 21 Posts

    Default Custom QHeaderView with multiple header rows and comboBox

    Hi all,..

    I want to implement a QTableView with a header such as attached image.

    table.png

    I've found that i can't do this by delegate, so bad . May be i have to use inline editor.
    What are other possibe solutions to use combo Box in QHeaderView??
    How can i implement QHeaderView with multiple row (filtering + unit + ...(as attached image)).
    Can a QTableView has multiple QHeaderViews or maybe i have to use some tricks to have multiple rows in header?

  2. #2
    Join Date
    Jan 2012
    Location
    Iran, Tehran
    Posts
    308
    Qt products
    Qt4 Qt5 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows
    Thanks
    75
    Thanked 24 Times in 21 Posts

    Default Re: Custom QHeaderView with multiple header rows and comboBox

    Any Suggestions?!

  3. #3
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    27
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanked 2 Times in 2 Posts

    Default Re: Custom QHeaderView with multiple header rows and comboBox

    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein

  4. The following user says thank you to ObiWanKenobe for this useful post:

    alizadeh91 (27th November 2012)

Similar Threads

  1. Replies: 5
    Last Post: 12th April 2011, 09:03
  2. Replies: 1
    Last Post: 8th September 2010, 21:38
  3. Replies: 2
    Last Post: 17th July 2010, 21:07
  4. QHeaderView: background of selected header item with CSS
    By antarctic in forum Qt Programming
    Replies: 5
    Last Post: 8th June 2009, 07:37
  5. horizontal header over two rows in tablewidget
    By Nippler in forum Qt Programming
    Replies: 2
    Last Post: 28th April 2008, 10:33

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
  •  
Qt is a trademark of The Qt Company.