Skip to content

PySide6 does not support QQuickAttachedPropertyPropagator #162

@zhuzichu520

Description

@zhuzichu520

PySide6 seems to not support QQuickAttachedPropertyPropagator because using the following code results in an error:

@QmlNamedElement("FluentUI") 
@QmlAttached(FluentUI)
class FluentUI(QQuickAttachedPropertyPropagator):

However, if I write it in a split manner like this:

@QmlAnonymous
class FluentStyleAttached(QQuickAttachedPropertyPropagator):

@QmlNamedElement("FluentUI")
@QmlAttached(FluentStyleAttached)
class FluentUI(QObject):

The attachedParentChange method does not get triggered.

How can I resolve this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions