[Qt-qml] Models inside models
wz
zhaoweigod at 126.com
Thu Mar 24 16:57:58 CET 2011
sorry Listview1,2,3 are just the elements of the parent Listview,
each element is also a listview which has three elements.
At 2011-03-24 23:54:28,wz <zhaoweigod at 126.com> wrote:
>i just design a qml like this :
>Listview 1 : element 1 element 2 element 3
>Listview 2 : element 1 element 2 element 3
>Listview 3: element 1 element 2 element 3
>the up-down button is to switch from Listview1,2,3.
>the left-right button is to switch from element 1,2,3 in each Lisiview
>At 2011-03-24 23:44:45,"Yuvraaj Kelkar" <yuvraaj at gmail.com> wrote:
>>Sorry to reply to myself but I clicked send before pasting the links
>>to the QML involved:
>>http://code.google.com/p/qgvdial/source/browse/trunk/qml/ContactsList.qml
>>http://code.google.com/p/qgvdial/source/browse/trunk/qml/ContactDetails.qml
>>
>>On Thu, Mar 24, 2011 at 8:43 AM, Yuvraaj Kelkar <yuvraaj at gmail.com> wrote:
>>> Here's a working example:
>>> http://code.google.com/p/qgvdial/source/browse/trunk/src/ContactsModel.cpp#16
>>>
>>> It's my oft clichéd contacts model in which each contact has a model
>>> containing phone entries.
>>>
>>> Hope this helps
>>>
>>> 2011/3/24 wz <zhaoweigod at 126.com>:
>>>> I just tell you it is possible!
>>>>
>>>> At 2011-03-24 20:29:28,"Alexey Zaryanov" <rumidday at gmail.com> wrote:
>>>>
>>>> If i have C++ model where each item have another model inside. How can id
>>>> implement this?
>>>> For example:
>>>> Listview{
>>>> model: myCPPmodel
>>>> .............
>>>> ............
>>>> delegate: Item{
>>>> .............
>>>> ListView{
>>>> model: myModelFromCPPmodel
>>>> ....
>>>> {
>>>>
>>>> }
>>>> }
>>>>
>>>> It is possible ?
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Qt-qml mailing list
>>>> Qt-qml at qt.nokia.com
>>>> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>>>>
>>>>
>>>
More information about the Qt-qml
mailing list