Hi
This is my first post to a Qt forum, and believe me, I'm doing this after some rather serious googling and coding. So, please be gentle, here goes:
Do you have any non-trivial example of using Q_PROPERTY macros for deeply nested classes. All I can seem to bump into are examples of nested enums or, a one level class that itself is a struct, not a QObject.
Given classes say, A, B, C, D - all QObjects, all Q_DECLARE_METATYPE declared and registered, all happy with assignment operators, copy constructors and the usual C++ goodness.
I need (and can't seem to figure out or find a clean example) to do the following.
class C has a read/write Q_PROPERTY of type B (I tried B*, that didn't work either)
class B has a read/write Q_PROPERTY of type A
class D has a read/write of type list of C
Any help would be deeply appreciated. This is on Qt 4.6 Jan 2010 cut (though same results on 4.7 beta 1). Note, I did find QML examples of the same, just can't use Qml at this point.
Thanks
Sammy
Bookmarks