PDA

View Full Version : QTable insertRows issue



PrimeCP
18th April 2007, 02:41
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?

wysota
18th April 2007, 10:08
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.