itat_challenge/application.qml

26 lines
470 B
QML

import QtQuick
import QtQuick.Controls
ApplicationWindow {
width: 400
height: 400
visible: true
TreeView {
id: listView
anchors.fill: parent
model: sports // This will reference the model added to the context
delegate: ItemDelegate {
text: eventName
}
Component.onCompleted : console.log(Object.keys(sports.data))
}
// StackView {
// id: stackView
// anchors.fill: parent
// initialItem: EventsPage {}
// }
}