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
Forum Update on Tuesday, May 27th 2025

QML var property created from by python class

Scheduled Pinned Locked Moved Unsolved Qt 6
pyside6qml
1 Posts 1 Posters 323 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 13 Apr 2021, 16:24 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

    1/1

    13 Apr 2021, 16:24

    • Login

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