Important: Please read the Qt Code of Conduct -

QML var property created from by python class

  • Hello,

    I just moved to PySide6 so I have my question in this channel.

    I'm building a custom QML type from a python class, so far so good, but I need a var property in this python declared QML object. I didn't find how to create it on python side (int, string, etc are easy one, but how to create a var property ?). Is there any way ?
    I really would like all my properties be declared at python side and don't have user to create property in QML just because python is not capable.

    Thanks much for your help.

Log in to reply