Results 1 to 2 of 2

Thread: How to get QTableWidget columns label value

  1. #1
    Join Date
    Feb 2014
    Posts
    13
    Thanks
    1
    Qt products
    Qt5

    Default How to get QTableWidget columns label value

    Is there a way to get QTableWidget's column label value? The inverse of setHorizontalHeaderLabels(QString) in Qt and the equivalent of GetColLabelValue (int col) wxWidgets: I'm looking for a long time in the Qt documentation but could not find the command I need

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to get QTableWidget columns label value

    Try horizontalHeaderItem(int col) and then getting the text from it.

    Cheers,
    _

Similar Threads

  1. QTableWidget columns size
    By ^NyAw^ in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2010, 11:33
  2. Resizing QTableWidget Columns
    By mbrusati in forum Qt Programming
    Replies: 4
    Last Post: 29th September 2008, 22:26
  3. Select columns from a QTableWidget
    By toglez in forum Qt Programming
    Replies: 10
    Last Post: 7th October 2007, 15:15
  4. QTableWidget - images in columns
    By bruccutler in forum Qt Programming
    Replies: 3
    Last Post: 1st May 2007, 18:28
  5. Maximize columns on QTableWidget
    By marcelrc in forum Newbie
    Replies: 1
    Last Post: 21st May 2006, 15: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
  •  
Qt is a trademark of The Qt Company.