[Qt-qml] C++ Data Models and plugin mechanism
Bartosh Wroblevksy
bartosh at live.com
Thu May 20 16:57:42 CEST 2010
Thanks, really appreciate the feedback from everybody. It's making more sense to me now. I have tons of questions will research them. But I will start another thread for my next one.
> From: warwick.allison at nokia.com
> To: bartosh at live.com; qt-qml at trolltech.com
> Date: Wed, 19 May 2010 03:16:05 +0200
> Subject: RE: [Qt-qml] C++ Data Models and plugin mechanism
>
> > 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
_________________________________________________________________
30 days of prizes to be won with Hotmail. Enter Here.
http://go.microsoft.com/?linkid=9729709
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100520/2de6c9aa/attachment.html
More information about the Qt-qml
mailing list