[Qt-interest] QAbstractListModel Scrolling Performance Issue
Stephan Rose
kermos at somrek.net
Wed Dec 3 19:14:19 CET 2008
>Back to the list :)
Hit the wrong reply button. :)
>
>Have you tried the setUniformRowHeights trick?
No difference.
>
>Again, just trying to focus in on the problem, have you tried using a
>QTableView ?
QTableView doesn't have the performance problems, perfectly smooth there. However, visually it doesn't look nearly as good. The representation of the data in the QTreeView looks by far better than the excel-like spreadsheet look QTableView gives.
I've traced the problem in the QTreeView down to an excessive number of ::data() calls. With my resultset and 6 columns I end up with over 1,550,000 ::data calls when scrolling from top to bottom compared to around 33,000 done by the QTableView with the same dataset.
Thanks,
Stephan
More information about the Qt-interest-old
mailing list