-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.4, 6.9.2, 6.10.0 Beta3
-
None
-
cca07aa78 (dev), 1ef769fcb (6.10), f8b31ecdd (6.9), 7690659b3 (tqtc/lts-6.8)
If you have a C++ class with a Q_PROPERTY of type QList<QVariantMap> and you try to retrieve a member of those QVariantMaps from QML, you get a crash. This is because the access into the list results in an optional value and we so far only resolve the optional values when lookup up properties of value types.
For Gerrit Dashboard: QTBUG-139626 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
671727,2 | QmlCompiler: Fix access to optional QVariantMap | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
672475,2 | QmlCompiler: Fix access to optional QVariantMap | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
672607,2 | QmlCompiler: Fix access to optional QVariantMap | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
672804,3 | QmlCompiler: Fix access to optional QVariantMap | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |