Results 1 to 3 of 3

Thread: QTableView : headers disappear

  1. #1
    Join Date
    Apr 2006
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QTableView : headers disappear

    Hi all,

    I am creating a user interface that should display several table views, and for some of them, the headers tend to disappear at some point.

    I have several classes, say class1 and class2.
    One table view shows information on class1 (1 instance per row)
    One table view shows information on class2 (1 instance per row)

    A last table view displays a coefficient for each couple (class1, class2). So if I have m objects of class1 and n objects of class2, this last table has m rows and n columns.

    Problem is, when I add or remove objects of class1 or class2, the dimension changes. When I add an object, I send signals to execute the functions "beginInsertRows" and "endInsertRows" to the model associated to the "joint table". It works fine, except that the headers disappear when I do that (not always, but most of the time).

    Does any one have an idea why this happens? I use Qt 4.0.

    Thanks,

    xavier

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    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: QTableView : headers disappear

    Check the task tracker if this was a known issue in 4.0. It might have been fixed in later releases, so you should upgrade your installation.

  3. #3
    Join Date
    Apr 2006
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTableView : headers disappear

    yes, I tried with Qt 4.1 under windows and it works fine. Thanks.

Similar Threads

  1. spaning the headers in the QTableView
    By ru_core in forum Qt Programming
    Replies: 6
    Last Post: 11th June 2013, 13:17
  2. How to remove headers from QTableView.
    By rajeshs in forum Qt Programming
    Replies: 7
    Last Post: 18th November 2011, 20:00
  3. QTableView Headers problem
    By giusepped in forum Qt Programming
    Replies: 1
    Last Post: 23rd January 2009, 11:05
  4. QTableView Horizontal Header's Width
    By araglin in forum Newbie
    Replies: 3
    Last Post: 21st December 2008, 08:54
  5. swap headers in QTableView
    By dimixan in forum Qt Programming
    Replies: 2
    Last Post: 26th May 2008, 20:44

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.