[Qt-qml] C++ Data Models and plugin mechanism
warwick.allison at nokia.com
warwick.allison at nokia.com
Wed May 19 03:16:05 CEST 2010
> QDeclarativeExpression: Expression "(function() { return
> myPluggedInObj.myModel })" depends on non-NOTIFYable properties:
This message means that one of the properties in the expression does not have a NOTIFY signal, so if it changes, the expression will not be re-evaluated, so this:
> > Q_PROPERTY(QStringList myModel READ myModel);
Would need to be:
Q_PROPERTY(QStringList myModel READ myModel NOTIFY myModelChanged)
And when the list of strings changed (because of some mechanism in the C++ code), you would emit myModelChanged() to tell the QML to update all dependant expressions (bindings).
--
Warwick
More information about the Qt-qml
mailing list