Imagine a QObject derived class:
class MyObject : public QObject
{
Q_OBJECT;
Q_PROPERTY(bool myBool READ myBool WRITE setMyBool);
//...
}
How do I receive all the properties of the derived class MyObject only without any of the base classes?
Using this code snippet from the Qt documentation, one can list the properties of the derived class only:
This should work with Qt 4, 5 and 6. Tested with Qt 4.8.