Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7, 6.8
-
43f7e0a65 (dev), b80933aed (6.8), e8db46a66 (6.7), 3157d863c (tqtc/lts-6.5)
Description
The TableModel::appendRow() method does not work as documented (https://doc.qt.io/qt-6/qml-qt-labs-qmlmodels-tablemodel.html).
When calling TableModel::appendRow(), the following error is encountered, and the new row is not added:
QML TableModel: appendRow(): expected "row" argument to be a QJSValue, but got QVariantMap instead:
To reproduce the issue, run the attached example project.
The issue doesn't appear in Qt 6.6.3
Attachments
For Gerrit Dashboard: QTBUG-126723 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
573823,4 | Support parsing variant map in qml table model APIs | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
574438,2 | Support parsing variant map in qml table model APIs | 6.8 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
574581,2 | Support parsing variant map in qml table model APIs | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
574648,2 | Support parsing variant map in qml table model APIs | tqtc/lts-6.5 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |