[Interest] QML ListModel of ListModels?
Gunnar Roth
gunnar.roth at gmx.de
Mon Mar 23 22:52:45 CET 2015
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 <jhihn at 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 at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150323/0082ac4c/attachment.html>
More information about the Interest
mailing list