Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qml-cpp expose class as Q_PROPERTY
QtWS25 Last Chance

Qml-cpp expose class as Q_PROPERTY

Scheduled Pinned Locked Moved Unsolved General and Desktop
property bindinpropertychangesqml c++
2 Posts 2 Posters 305 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.
  • L Offline
    L Offline
    Lior
    wrote on 7 Sept 2022, 18:26 last edited by
    #1

    Hi
    Is it possible to expose class as Q_PROPERTY?
    (I know how to expose native variables.)

    In my case, I want to handle chunk of data that change at the same time, and I want to render it at the same frame.

    Is it possible?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 8 Sept 2022, 07:18 last edited by
      #2

      Yes, you can put any QObject-subclass in as a property (use pointers). Also works with Q_GADGETs.

      (Z(:^

      1 Reply Last reply
      0

      2/2

      8 Sept 2022, 07:18

      • Login

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