assignment of custom property type issue since Qt6.6
Phil Thompson
phil at riverbankcomputing.com
Mon Jun 24 09:14:24 BST 2024
On 20/06/2024 15:29, Sander van Grieken wrote:
> 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
I hate QML...
I think the internals have changed to support property bindings and the
Python integration depends on knowledge of the Qt internals. This will
take a long time to work out a fix (assuming it is possible) so I would
stick with your workaround (which may turn out to be the correct
solution).
Phil
More information about the PyQt
mailing list