[Qt-interest] [Performance] Inserting thousands of rows

Scott Aron Bloom Scott.Bloom at sabgroup.com
Thu Jan 22 02:49:35 CET 2009


Don't use TableWIdget, use TableView and a custom model..

 

Make sure your model doesn't block on loading the data...


Scott

 

From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Georg Grabler
Sent: Wednesday, January 21, 2009 5:40 PM
To: qt-interest at trolltech.com
Subject: [Qt-interest] [Performance] Inserting thousands of rows

 

Hello,

I've a question about performance (or visual performance) of an
application

Let's take a common QTableWidget. Let's say I'd like to insert ....
10.000 rows. Now, usually my whole application (in most languages) will
block, until the rows are inserted. So it does in QT at the moment,
using a standard QT Designer form with a TreeView and a TableWidget.

Do you have any ideas to (in example) have an own thread handling the
QTableWidget, so the rest of the application won't block, so I can still
use the Menu / TreeView while the Table is loading?

Kind regards,
Georg

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090121/8dd5a73a/attachment.html 


More information about the Qt-interest-old mailing list