[Interest] Re: Model for QTreeView

2012-11-19 Thread Jan Kundrát
On Monday, 19 November 2012 19:25:25 CEST, Alex Strickland wrote: > My attempts don't work, can anyone say why? What "doesn't work" mean here? It isn't obvious from the code what you've actually tried to do with the model. Did you run modeltest [1] on it? Did you just fed it to a QTreeView? What

[Interest] Re: Model for QTreeView

2012-11-19 Thread Jan Kundrát
On Monday, 19 November 2012 16:05:03 CEST, Alex Strickland wrote: > typedef struct TreeStruct > { > QString name; > QList 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] a