Results 1 to 2 of 2

Thread: hide the row heading of Table Widget

  1. #1
    Join Date
    Jul 2007
    Posts
    166
    Thanks
    25
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default hide the row heading of Table Widget

    Hi,
    I am using QT 4.2.2. In my form I have a Table Widget and display some data in that Table Widget. I want to hide the row heading. How can I do that? Please help me.
    Sabeesh

  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: hide the row heading of Table Widget

    You can access the header via QTableView::horizontalHeader(). QHeaderView is a QWidget so you can use QWidget::hide() to hide it.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    AaronMK (10th September 2007)

Similar Threads

  1. customizing table widget
    By krishna.bv in forum Qt Programming
    Replies: 1
    Last Post: 25th January 2007, 13:43
  2. make each row of table widget not editable??
    By darpan in forum Qt Programming
    Replies: 4
    Last Post: 16th October 2006, 10:22
  3. Replies: 11
    Last Post: 7th September 2006, 23:15
  4. Dynamic updates to a table widget
    By guiGuy in forum Qt Programming
    Replies: 6
    Last Post: 1st June 2006, 20:24
  5. Replies: 3
    Last Post: 21st March 2006, 16:48

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.