kromain / qml-utils

A collection of QML utilities and snippets
MIT License
158 stars 60 forks source link

is it normal I have only one result display ? #5

Open Nymerea opened 9 years ago

Nymerea commented 9 years ago

Hello,

I have this code :

Page {
    title: i18n.tr("Index")
    ListView {
        id: redditList
        JSONListModel {
            id: redditFeed
            source: "http://www.reddit.com/r/Ubuntufr/hot.json"
            query: "$.data.children[*]"
        }
        model: redditFeed.model
        delegate: ListItem.Subtitled {
            iconSource: model.data.thumbnail
            Text {
                horizontalAlignment: Text.AlignLeft
                font.pixelSize: 12
                color: "black"
                text: model.data.title

            }
        }
    }
}

but only the frist result is display ! Can you explain me why ?