[Qt-interest] Why QListView is so slow and QTableView is fast?
Arnold Krille
arnold at arnoldarts.de
Wed Aug 26 14:41:18 CEST 2009
On Wednesday 26 August 2009 14:26:08 Kenneth Beck wrote:
> I am having a very similar problem with a QTableView. Once the model is
> filled and the user is just moving around the table, just moving from
> one cell to the other, or moving the scroll bar, takes a lot of time.
> Each call to the data() method requires a search into the model to find
> the data, but the model only contains a few 10's of items, it is not
> large. Does anyone know where to look for ways to speed this up? Are
> there some optimization tricks?
If there are only few entries in the model, test your app with "valgrind --
tool=callgrind" to see where the time is spent.
Have fun,
Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090826/6fd0800c/attachment.bin
More information about the Qt-interest-old
mailing list