Hi there Not in QML, but I you can implement it in JavaScript. You can implement an OnChanged: handler for a property and whenever it is changed add new value to some JavaScript list. Certainly you'll have to care about when you try adding the same value twice as that won't cause OnChange signal.
What I am curious about is why you need such an accumulative property. Why can't some addValue() javascript function suite you? Cheers, Artem. -- Artem Marchenko Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Monday, 30 April 2012 р. at 00:30, Charley Bay wrote: > In addition to "bindings" and "assignment" (possibly including single-values > or lists-of-values), is there a QML concept of "plus-equals"? > > For example: > > Item { > my_set0 : some_val0; // replace value > > // ...can I "accumulate" values? > my_set1 :+ added_val; // Something like this? > my_set2 +: added_val; // Something like this? > } > > > _______________________________________________ > Qt-qml mailing list > Qt-qml@qt.nokia.com (mailto:Qt-qml@qt.nokia.com) > http://lists.qt.nokia.com/mailman/listinfo/qt-qml > >
_______________________________________________ Qt-qml mailing list Qt-qml@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-qml