[Interest] Make a flat Model from a hierarchical Model with all children

47 views
Skip to first unread message

nor...@me.com

unread,
Mar 26, 2012, 12:22:35 PM3/26/12
to Qt Project MailingList
Hello,

I have a hierarchical Model and i want to have a flat Model.

Does anyone have an idea on how to do this with an proxy model?

Best Regards
NoRulez
_______________________________________________
Interest mailing list
Inte...@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

STEFANI Mathieu

unread,
Mar 26, 2012, 12:32:59 PM3/26/12
to nor...@me.com, Qt Project MailingList
Hello,

Check this link for an implementation : http://www.fioniasoftware.dk/blog/?p=51

j-p....@nokia.com

unread,
Mar 26, 2012, 12:34:19 PM3/26/12
to inte...@qt-project.org
> -----Original Message-----
> From: interest-bounces+j-p.nurmi=noki...@qt-project.org
> [mailto:interest-bounces+j-p.nurmi=noki...@qt-project.org] On Behalf
> Of ext nor...@me.com
> Sent: 26. maaliskuuta 2012 18:23
> To: Qt Project MailingList
> Subject: [Interest] Make a flat Model from a hierarchical Model with all
> children
>
> Hello,
>
> I have a hierarchical Model and i want to have a flat Model.
>
> Does anyone have an idea on how to do this with an proxy model?
>

Try this: http://www.fioniasoftware.dk/blog/?p=51

--
J-P Nurmi

André Somers

unread,
Mar 27, 2012, 8:01:24 AM3/27/12
to inte...@qt-project.org
Op 26-3-2012 18:34, j-p....@nokia.com schreef:

>> -----Original Message-----
>> From:interest-bounces+j-p.nurmi=noki...@qt-project.org
>> [mailto:interest-bounces+j-p.nurmi=noki...@qt-project.org] On Behalf
>> Of extno...@me.com
>> Sent: 26. maaliskuuta 2012 18:23
>> To: Qt Project MailingList
>> Subject: [Interest] Make a flat Model from a hierarchical Model with all
>> children
>>
>> Hello,
>>
>> I have a hierarchical Model and i want to have a flat Model.
>>
>> Does anyone have an idea on how to do this with an proxy model?
>>
> Try this:http://www.fioniasoftware.dk/blog/?p=51
>
Interesting. Not sure why he (Bo) didn't just replace the view with a
QTreeView though? Seems simpler...

André

Reply all
Reply to author
Forward
0 new messages