Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5, 6.7
-
None
Description
https://doc.qt.io/qt-6/qml-qtquick-tableview.html#editing-cells states that
TableView.onCommit:
This may be true in case the model is an QAbstractItemModel https://doc.qt.io/qt-6/qabstractitemmodel.html#setData. But in the snippet example a TableModel is used so the signature for setData() is different: https://doc.qt.io/qt-6/qml-qt-labs-qmlmodels-tablemodel.html#setData-method
The code should be:
TableView.view.model.setData(index, "display", text)
Or better still the TableModel's setData() function should maybe have the same signature than QAbstractItemModel's...