summaryrefslogtreecommitdiff
path: root/application.qml
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-08-11 20:54:39 +0200
committerOrangerot <purple@orangerot.dev>2024-08-11 20:54:39 +0200
commitefeec3b99e02fd17fc1c69a0f221d578ccc48eef (patch)
treec38e48e6395c0542424ab773a43a38b9d7f9786c /application.qml
parentcf013eb832f323cb9de6b114038233b77d115bc8 (diff)
feat(JSON): test QJsonModelorangerot/qjsonmodel-treeview
Diffstat (limited to 'application.qml')
-rw-r--r--application.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/application.qml b/application.qml
index 5e5d092..44236fe 100644
--- a/application.qml
+++ b/application.qml
@@ -6,13 +6,14 @@ ApplicationWindow {
height: 400
visible: true
- ListView {
+ TreeView {
id: listView
anchors.fill: parent
model: sports // This will reference the model added to the context
delegate: ItemDelegate {
- text: modelData
+ text: eventName
}
+ Component.onCompleted : console.log(Object.keys(sports.data))
}
// StackView {