diff options
author | Orangerot <purple@orangerot.dev> | 2024-08-04 04:50:11 +0200 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2024-08-04 04:50:11 +0200 |
commit | cf013eb832f323cb9de6b114038233b77d115bc8 (patch) | |
tree | 91481cc6be6d8622dbeffaabcda42500574b393a /application.qml | |
parent | 71aee728b7bc5868e1e6ade8fbe615a6fdf132ba (diff) |
feat(QJsonModel): compile and first model test
Diffstat (limited to 'application.qml')
-rw-r--r-- | application.qml | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/application.qml b/application.qml index cf7b04d..5e5d092 100644 --- a/application.qml +++ b/application.qml @@ -6,10 +6,19 @@ ApplicationWindow { height: 400 visible: true - StackView { - id: stackView + ListView { + id: listView anchors.fill: parent - initialItem: EventsPage {} + model: sports // This will reference the model added to the context + delegate: ItemDelegate { + text: modelData + } } + + // StackView { + // id: stackView + // anchors.fill: parent + // initialItem: EventsPage {} + // } } |