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
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to