I just need some direction on this one.
I want to create MyClass with some Q_PROPERTY fields then declare MyClass as a metatype so I can use it in QVarient and set it as a Q_PROPERTY of my main widget. Then MyClass properties will get added as compound properties (like geometry or font on QWidget).
I run a Q_DECLARE_METATYPE() at the end of MyClass and qRegisterMetaType<MyClass>(); in the constructor of the widget. Declaring:
Q_PROPERTY(MyClass myClass READ myClass WRITE setMyClass) in the header.
It runs the setMyClass method but doesn't display anything...
Bookmarks