How to display multiple columns in tableview using qt quick 2
Unsolved
QML and Qt Quick
-
I have created C++ model "chrgHistView" and exposed it to qml. Using the delegate shown below I am able to display only one column role from the model i.e "batteryID" How to display all the columns from the model ?
TableView { id : tableView anchors.fill: parent columnSpacing: 1 rowSpacing: 1 clip: true ScrollBar.vertical: ScrollBar{} ScrollBar.horizontal: ScrollBar{} model: chrgHistView delegate: Rectangle { implicitWidth: 100 implicitHeight: 50 border.width: 1 Text { text: model.batteryID anchors.centerIn: parent } } }