Open arpitjindal97 opened 6 years ago
I have a qml file containing button and tableview. I have created CustomTableModel for tableview.
CustomTableModel
Button { id: button x: 51 y: 13 width: 101 height: 28 text: qsTr("Start") onClicked: tableView.model.start(button) anchors.verticalCenter: parent.verticalCenter }
How should start() be defined to get the instance of button. I want to change the text of button on click inside the golang function
start()
Do you want to know how to use qml files? It is explained below.
https://github.com/therecipe/qt/issues/631
doesn't answer my question
I'm sorry. I did not read the last sentence of the question. I do not have an answer to that.
I have a qml file containing button and tableview. I have created
CustomTableModel
for tableview.How should
start()
be defined to get the instance of button. I want to change the text of button on click inside the golang function