Can a user-made subclass of Parent
of QObject
have multiple Q_PROPERTY
s of the same name (possibly with different types)? What if I subclass Parent
to Child
, and give that a similarly-named Q_PROPERTY
? Like so:
#include <QObject>
class Parent : public QObject {
Q_OBJECT
Q_PROPERTY(int something MEMBER m_something)
Q_PROPERTY(double something MEMBER m_somethingElse)
Q_PROPERTY(QString third MEMBER m_third)
int m_something;
double m_somethingElse;
QString m_third;
};
class Child : public Parent {
Q_OBJECT
Q_PROPERTY(QString third MEMBER m_fourth)
QString m_fourth;
};