[Interest] Re: Model for QTreeView
Jan Kundrát
jkt at flaska.net
Mon Nov 19 17:10:44 CET 2012
On Monday, 19 November 2012 16:05:03 CEST, Alex Strickland wrote:
> typedef struct TreeStruct
> {
> QString name;
> QList<QString> leaves;
> };
That's a rather strange tree -- you could only ever have a tree with at most one level of nesting using this structure.
Have you read the example [1] about how tree models can be constructed?
Cheers,
Jan
[1] http://qt-project.org/doc/qt-4.8/itemviews-simpletreemodel.html
More information about the Interest
mailing list