-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
class A : public QObject { Q_PROPERTY(int foo ...); }; class B : public QObject { Q_INVOKABLE void foo(); };
From JavaScript in QML, reading the property "foo" on an instance of type B will return the foo Q_PROPERTY instead of the foo Q_INVOKABLE. That is, properties incorrectly always take precedence over methods.