Why not use a list view with sections? see 
http://doc.qt.io/qt-5/qml-qtquick-listview.html#section-prop 
<http://doc.qt.io/qt-5/qml-qtquick-listview.html#section-prop>


> Am 23.03.2015 um 22:48 schrieb Jason H <jh...@gmx.com>:
> 
> In a flickable, I want to have a 2-layer hierarchy:
> Category 1
>  Item 1
>  Item 2
> Category 2
>  Item 1
>  Item 2
> ...
> Category N
>  Item X
>  Item Y
>  Item Z
> 
> 
> How can I create QML element that allows any number of Categories and Items? 
> Can I use one root model?
> Or must I create these categories dynamically using createComponent? I'd 
> rather not use createComponent.
> 
> Thanks.
> 
> 
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

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

Reply via email to