[PyQt] Performance of QTreeView
bazwal at ftml.net
Sat Oct 9 23:13:29 BST 2010
On 09/10/10 21:00, Knacktus wrote:
> Hi everyone,
> I've got a QTreeView with a custom model. I've set the
> setUniformRowHeights property to True:
> Now, to expand the tree with a model with 10000 rows and 6 cols calling
> the expandAll slot takes about 1 minute! (on a 2.8 GHz Intel 860)
> I'm doing some calculations in my underlaying data. But when I iterate
> recursivly over the model and print the lines to the shell, it takes a
> couple of seconds.
> Is that the kind of performance one can expect from pyqt or Qt?
> Also, when collapsing all and expanding again, it takes the same amount
> of time.
> Further, I saw no benefit setting the setUniformRowHeights property to
> Another hint: My data is deeply nested. Does that come into account?
what sort of performance do you get using equivalent data but without
your custom model?
can you post a minimal example that demonstrates the problem so that
others can try to reproduce it?
More information about the PyQt