Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.0
-
-
b9a9a890e (dev), 38697f739 (6.7)
Description
Unable to assign ChildClass to BaseClass for QML properties. This used to work in earlier versions (e.g., PySide6 6.6.2).
To reproduce the issue, run the attached example project.
Expected behavior (as in earlier versions): ChildClass text shows up.
Behavior in PySide 6.7.0: ChildClass text doesn't show up, and the following warning appears instead: "Unable to assign ChildClass to BaseClass."
As a workaround in PySide 6.7.0, set the qml property type to 'var' instead.
Attachments
For Gerrit Dashboard: PYSIDE-2709 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
558885,6 | Fix class hierarchies not working with legacy qmlRegisterType() | dev | pyside/pyside-setup | Status: MERGED | +2 | +1 |
558958,2 | Fix class hierarchies not working with legacy qmlRegisterType() | 6.7 | pyside/pyside-setup | Status: MERGED | +2 | 0 |