Results 1 to 2 of 2

Thread: combo box in Header of QTableWidget

  1. #1
    Join Date
    Dec 2006
    Posts
    123
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11

    Default combo box in Header of QTableWidget

    hi everyone,

    can anyone say me how to insert a combo box in the header of a table. i searched in the net and the docs and i found that we can only add the widgets to tht table through setCellWidget and not in the header of the table.

    can anyone provide me any suggestion or solutions for this ?

    thanks in advance,
    saravanan.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: combo box in Header of QTableWidget

    What did you try so far?

    QHeaderView is not a full-featured item view, which means you cannot use index widgets, editors or anything like that. I'm afraid you will have to keep the widget in the right location on your own. QHeaderView provides plenty of information about section geometries and their changes so it shouldn't be a problem.
    J-P Nurmi

Similar Threads

  1. QTableWidget NW corner header item?
    By McKee in forum Qt Programming
    Replies: 9
    Last Post: 30th May 2012, 23:44
  2. QTableWidget, header cells margin
    By DpoHro in forum Qt Programming
    Replies: 4
    Last Post: 17th January 2008, 23:38
  3. QTableWidget, header behavior
    By hyling in forum Qt Programming
    Replies: 1
    Last Post: 14th October 2006, 08:03
  4. QTableWidget item checkable and combo?
    By darpan in forum Qt Programming
    Replies: 1
    Last Post: 10th October 2006, 07:12
  5. How to delete header on QTableWidget
    By jlbrd in forum Qt Programming
    Replies: 2
    Last Post: 18th July 2006, 21:00

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.