Results 1 to 2 of 2

Thread: QT4 : how to hide all verticalHeaderItem's of QTableWidget?

  1. #1
    Join Date
    Jan 2006
    Posts
    36
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default QT4 : how to hide all verticalHeaderItem's of QTableWidget?

    How to hide all verticalHeaderItem's of QTableWidget?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QT4 : how to hide all verticalHeaderItem's of QTableWidget?

    Try this:
    Qt Code:
    1. QTableWidget *mywidget; // assuming your widget here
    2. mywidget->verticalHeader()->hide();
    To copy to clipboard, switch view to plain text mode 

    If it doesn't work, try iterating over all verticalHeaderItem's and delete them.

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.