Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.7.1
-
None
Description
class Bar: has a Q_PROPERTY(bool whatever READ whatever)
class Foo: has a Q_PROPERTY(QWidget* bar READ bar NOTIFY barChanged)
And an instance of "Foo" is set as a property "foo" in the root context.
Then the qml "Text
{ text: foo.bar.whatever }" will NOT complain about the lack of a NOTIFY signal for Bar::whatever. (Note, I can still successfully access the property 'whatever').
However, if instead, Foo's property is a QObject*, then qml WILL complain (as appropriate).
I think that any class that derives from QObject* should have the appropriate warnings provided.