Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
None
-
6.2.3
-
None
-
-
4118576eda (pyside/pyside-setup/dev) 1cb612c8fc (pyside/pyside-setup/6.2) 6983518e80 (pyside/pyside-setup/6.2.4) 1cb612c8fc (pyside/tqtc-pyside-setup/6.2) 6983518e80 (pyside/tqtc-pyside-setup/6.2.4) 4118576eda (pyside/tqtc-pyside-setup/dev)
Description
Create a python QObject derived class with a @Property of type QQmlPropertyMap.
Register the python class using qmlRegisterType
In QML, create one of those objects and attempt to reference the property. Fails with errors:
QMetaProperty::read: Unable to handle unregistered datatype 'QQmlPropertyMap*' for property 'Car::testmap'
file:///qtbug5/main.qml:22: TypeError: Cannot read property 'testkey' of undefined
Simplified minimal repro files attached.
Same files work fine with PyQt6
Attachments
For Gerrit Dashboard: PYSIDE-1845 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
399867,2 | PySide6: Fix properties of type QQmlPropertyMap * | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
400038,3 | PySide6: Fix properties of type QQmlPropertyMap * | 6.2 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
400171,2 | PySide6: Fix properties of type QQmlPropertyMap * | 6.2.4 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
400676,2 | PySide6: Fix properties of type QQmlPropertyMap * | tqtc/6.2.4 | pyside/tqtc-pyside-setup | Status: MERGED | +2 | 0 |