Skip to content

Instantly share code, notes, and snippets.

@kimmoli
Last active January 6, 2016 10:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kimmoli/604cc62ea9f835f18a8a to your computer and use it in GitHub Desktop.
Pöh
Column {
property var raw: ["apples", "oranges", "pears", "kissa", "koira", "ei", "vain", "hedelmiä", "ananas"]
Component.onCompleted:
{
for (var i=0 ; i<Math.min(3, raw.length) ; i++)
lm.append({ name: raw[i] })
}
ListModel
{
id: lm
}
Repeater
{
model: lm
Label { text: "Data: " + name }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment