qmlmirror/TaskWarrior.qml
2015-11-16 09:27:06 +01:00

31 lines
548 B
QML

import QtQuick 2.2
//import net.frozentux.qmlcomponents 1.0
Rectangle {
id: root
anchors.fill: parent
color: "white"
property string fileName: "jsondata.txt"
JSONListModel {
id: jsonModel
source: "jsondata.txt"
}
ListView {
id: jsonView
anchors.fill: parent
model: jsonModel.model
delegate: Text {
text: model.description
Component.onCompleted: {
console.log("Text: " + text)
}
}
}
}