Hi,
How can I get data from all cell of selected row in tableview.
TableView {
id: tablemodel
anchors.fill: parent
model: myXML.newMyModel // == > QStandardItemModel
onClicked: {
txt1.text = model.get(row).prop1;
}
MyTableViewColumn {
title: "...."
....
width: 50
}
.....
MyTableViewColumn {
role: "index"
title: " "
width: 30
}
TableView {
id: tablemodel
anchors.fill: parent
model: myXML.newMyModel // == > QStandardItemModel
onClicked: {
txt1.text = model.get(row).prop1;
}
MyTableViewColumn {
title: "...."
....
width: 50
}
.....
MyTableViewColumn {
role: "index"
title: " "
width: 30
}
To copy to clipboard, switch view to plain text mode
I have this error:
TypeError: Property 'get' of object QStandardItemModel(0xa8a1cd3ac0) is not a function
To copy to clipboard, switch view to plain text mode
Bookmarks