[Qt-interest] QTreeView and custom QAbstractItemModel performance problem

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Fri Jul 9 15:55:10 CEST 2010


> For what I want the TableView is like taking sledgehammer to crack a
> nut. I just want a protocol, say 200 lines, first column shows an icon
> and when it's full the oldest data gets discarded.

Sorry for jumping in so late. I've been following your issue for some time.

Initially you had mentioned "...i.e. the model is not hierarchic, all
rows have the same parent (root) and consist of multiple
columns..."

In such a case, why did you choose to go for a tree based model and view combo?

If there is no hierarchy in your data (i.e it's flat) wouldn't it be
easy for you to "flat" model/view combo? (Table model/view as
Sean/Andre suggested)

I was initially confused thinking you had a tabular data for each
_level_ in your hierarchy and thats why you were using a tree
structure. But I guess thats not the case with you.

Regards,
-mandeep



More information about the Qt-interest-old mailing list