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.