PDA

View Full Version : QTable removeRow with large table



PrimeCP
26th March 2007, 23:11
Using Qt3 QTable.

I have some simple code that removes rows when they are selected and then deleted
(via a button) by the user that works fine with small data sets (a dozen or so rows) but when I place something like 32000 rows in the table the deletion coughs and sputters. The entire UI just goes blank and stays for minutes that way (I have let it go 3 min. with no end).

Is there something I should know about the removeRow method when a large number of rows are in the table? I'm currently just trying to delete 3 rows from the large table.

Thanks

wysota
27th March 2007, 07:59
You might want to try disabling updates first so that the table doesn't redraw itself after deleting each item and enable them again after removing all items.

Also make sure you read this: http://doc.trolltech.com/qq/qq07-big-tables.html