Qml-cpp expose class as Q_PROPERTY
Unsolved
General and Desktop
-
wrote on 7 Sept 2022, 18:26 last edited by
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?
-
Yes, you can put any QObject-subclass in as a property (use pointers). Also works with Q_GADGETs.
1/2