diff options
| author | Ulf Hermann <ulf.hermann@qt.io> | 2025-08-28 17:07:48 +0200 |
|---|---|---|
| committer | Ulf Hermann <ulf.hermann@qt.io> | 2025-09-01 14:11:57 +0200 |
| commit | cca07aa78841f2d743f0b4d933abb0dd66f0b948 (patch) | |
| tree | 46ec40b54bdacc795034d53d411cbcd60c7a2be1 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | |
| parent | e69a4b17cd6e9fb38218fb54e1ec82d7dcb45d69 (diff) | |
QmlCompiler: Fix access to optional QVariantMap
Without this, it tries to resolve the metaObject of QVariantMap, which
crashes.
Fixes: QTBUG-139626
Pick-to: 6.10 6.9 6.8
Change-Id: I9248f57c428810024f9983df959f475e6557576c
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
| -rw-r--r-- | tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp index df26b97488..8bddd2cca0 100644 --- a/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp +++ b/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp @@ -5828,6 +5828,7 @@ void tst_QmlCppCodegen::variantMapLookup() QScopedPointer<QObject> o(c.create()); QVERIFY(!o.isNull()); QCOMPARE(o->property("i"), 42); + QCOMPARE(o->property("j"), 42); } void tst_QmlCppCodegen::variantReturn() |
