If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.


Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 71
Registered: ‎12-17-2009
My Device: Z30
My Carrier: O2

3-level list that used to work now don't



I am pretty sure I had tried doing a three-level list in QML before, at least twice and it had worked. Unfortunately I do not remember the exact code as I did not save them. But I am not able to do it now!

Basically if, in my xml file I have

    <header title="Header 1">
         <item  name="Item 1">
         <subitem name = "ABC"/>





I was able to achieve, using purely QML (in fact it was a very simple step such that I do not remember how I did it) to make the list show:

Header 1

Item 1



To my recollection, I included a ListItemComponent inside the other ListItemComponent, but somehow now that I am trying to achieve the same again, it does not work.


Does anyone know how to do this?


listItemComponents: [
                    ListItemComponent {
                        Label {
                            text: ListItemData
                    ListItemComponent {
                        type: "item"
                       ListItemComponent {
                                type: "subitem"
                                Label {
                                 text: ListItemData.item




...I am 100% that it was possible to achieve this through QML but I just could not remember how to!

Please use plain text.
Posts: 267
Registered: ‎10-15-2012
My Device: bb10 developer
My Carrier: Orange

Re: 3-level list that used to work now don't

ListView supports at most 2 'levels' of hierarchy, and will not display any more than this. But you can have many different types of subitem (or items for that matter)
Please use plain text.