Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. QML var property created from by python class
QtWS25 Last Chance

QML var property created from by python class

Scheduled Pinned Locked Moved Unsolved Qt 6
pyside6qml
1 Posts 1 Posters 320 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JPL31
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved