PDA

View Full Version : Qt Application is slow



sosanjay
3rd November 2009, 05:34
Hi all ,


I am inserting data in TableWidget. In every sec almost 500 words insert in table and at runtime it create and delete row.

Its works fine in Windows but In Linux OS it is slow.



Can Anyone tell me that

How can I Increase the efficiency of the code?
Is this the reason that application is slow due to inserting data in table?

wysota
3rd November 2009, 08:15
If you insert them one by one then yes, that's the reason for it being slow. Either disable updates to the widget while inserting data or switch to a model based approach and insert more than one item at a time.

squidge
3rd November 2009, 08:25
I must agree with wysota, you need to use a model based approach instead. For me it still gets pretty slow, but only after a million records or so.