Results 1 to 2 of 2

Thread: setHorizontalHeaderLabels question

  1. #1
    Join Date
    Jul 2007
    Posts
    121
    Thanks
    38
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default setHorizontalHeaderLabels question

    QTableWidget::setHorizontalHeaderLabels(QStringLis t) method. When using it against the widget - horisontal headers (for columns) remain empty.
    • I set up the # ofcolumns equal to the number of elements in the string list
    • I see that HorizontalHeaderVisible property of the table in in QtDesigner is checked.
    • I see values of the list for the header in the debugger allright
    • I verified that nothing else sets up the header but this call
    • I start entering items from the row 1. Row count is set prior to element insertion
    • I am setting header labels as ui.tbl->setHorizontalHeaderLabels() prior to adding items


    Question - what might be the problem?

  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: setHorizontalHeaderLabels question

    Please provide a minimal compilable example reproducing the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 0
    Last Post: 31st May 2009, 16:51
  2. Access to QSqlTableModel::isDirty Question.
    By patrik08 in forum Qt Programming
    Replies: 3
    Last Post: 12th April 2007, 17:49
  3. Replies: 1
    Last Post: 15th March 2007, 20:45
  4. Question regarding how to paint after zoom.
    By JonathanForQT4 in forum Qt Programming
    Replies: 2
    Last Post: 26th January 2007, 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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.