Skip to content Skip to sidebar Skip to footer

Qtablewidget Becomes Slow For Large Tables

I want to create a Qt table widget which adds about 20 new rows per second (maxed at 10000). Old rows are never changed. Ar first I used QTableWidget, but I see the CPU% increases

Solution 1:

This is a workaround, but limiting the model to row count < 1000 gives a constant CPU%.

So an elegant solution for me will be to create a "paged" table view, which only shows N rows at a time (and the user can control the currently displayed window).

This yields excellent CPU as well as better usability, so I think the original question is not relevant.

Post a Comment for "Qtablewidget Becomes Slow For Large Tables"