2024-07-26 17:49:18 +02:00
|
|
|
import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
|
|
|
ApplicationWindow {
|
2024-07-30 10:56:05 +02:00
|
|
|
width: 400
|
|
|
|
height: 400
|
|
|
|
visible: true
|
2024-07-26 17:49:18 +02:00
|
|
|
|
2024-08-11 20:54:39 +02:00
|
|
|
TreeView {
|
2024-08-04 04:50:11 +02:00
|
|
|
id: listView
|
2024-07-30 10:56:05 +02:00
|
|
|
anchors.fill: parent
|
2024-08-04 04:50:11 +02:00
|
|
|
model: sports // This will reference the model added to the context
|
|
|
|
delegate: ItemDelegate {
|
2024-08-11 20:54:39 +02:00
|
|
|
text: eventName
|
2024-08-04 04:50:11 +02:00
|
|
|
}
|
2024-08-11 20:54:39 +02:00
|
|
|
Component.onCompleted : console.log(Object.keys(sports.data))
|
2024-07-30 10:56:05 +02:00
|
|
|
}
|
2024-08-04 04:50:11 +02:00
|
|
|
|
|
|
|
// StackView {
|
|
|
|
// id: stackView
|
|
|
|
// anchors.fill: parent
|
|
|
|
// initialItem: EventsPage {}
|
|
|
|
// }
|
2024-07-26 17:49:18 +02:00
|
|
|
}
|
2024-07-30 10:56:05 +02:00
|
|
|
|