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