Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.1
-
6a816a9e0 (dev), 7f3c8b7dd (6.5)
Description
This generates following error
property var v: null Component.onCompleted: { if (v !== null) {} }
Error: main.qml:19:13: Could not compile binding for onCompleted: Cannot generate efficient code for equality comparison on non-primitive types QJSValue of QJSValue and QJSValue of (component in /foo/main.qml)::v with type QVariant if (v !== null) {} ^
Attachments
Issue Links
- resulted in
-
QTBUG-109377 Add equality comparison ability for QObject * vs null and undefined
-
- Closed
-
For Gerrit Dashboard: QTBUG-108632 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
448219,22 | QmlCachegen: Equality comparison ability to var and void/null types | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
452508,4 | QmlCachegen: Equality comparison ability to var and void/null types | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |