assignment of custom property type issue since Qt6.6

Sander van Grieken sander at outrightsolutions.nl
Thu Jun 20 15:29:03 BST 2024


Hi List,

Since upgrading Qt6 from 6.4.2 to 6.6.2 (debian testing) I'm getting errors when assigning a custom type in one QObject to a same-typed property in another QObject.

e.g. 'Unable to assign Simple to Simple'

see also the attached assign-bug.py testcase.

Changing the setter in the consumer to QVariant fixes the issue, and the
type is the actual custom type

See the attached assign-bug-variant.py testcase.

Not sure if this is a PyQt issue, or that there is a issue between distro Qt6 and PyQt6.

Any thoughts?

grtz,
Sander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assign-bug.py
Type: text/x-python
Size: 1379 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20240620/f513df10/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assign-bug-variant.py
Type: text/x-python
Size: 1419 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20240620/f513df10/attachment-0001.py>


More information about the PyQt mailing list