Results 1 to 2 of 2

Thread: QTable insertRows issue

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

    Default QTable insertRows issue

    I implemented a table almost identical to the one suggested in the link below because I am working with very large data sets:

    http://doc.trolltech.com/qq/qq07-big-tables.html

    But now when I try to use the insertRows method it places the added row to the end of the table no matter what I give it as the location of the inserted row.
    I checked the numRows method to make sure that the inserted row was less than numRows and that appeared to be fine. I get no errors, and the row is inserted correctly ... it's just placed in the wrong location.

    Any suggestions?

  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: QTable insertRows issue

    As far as I understand, you can't use the regular table interface anymore if you reimplement the table this way. Instead you should modify the data source (model) directly and it will update the table (view) accordingly.

Similar Threads

  1. QTable Selection Issue
    By ToddAtWSU in forum Qt Programming
    Replies: 3
    Last Post: 6th February 2007, 13:37
  2. QTable gives error when put on a dialog??
    By darpan in forum Qt Tools
    Replies: 3
    Last Post: 7th August 2006, 19:57
  3. QTable column stretchable with minimum Width
    By sunil.thaha in forum Qt Programming
    Replies: 0
    Last Post: 24th April 2006, 13:17
  4. Problem with QTable
    By zlatko in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2006, 10:00
  5. QTable..Vs.. QListView
    By :db:sStrong in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2006, 21:03

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.