summaryrefslogtreecommitdiff
path: root/application.qml
blob: 44236feaf1245d9221a442d6f39fd30c180e7254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 {}
  // }
}