Hey all, I have a javascript library, with functions that are used in a lot of bindings. I'm trying to get those bindings to reevaluate when some variables used inside the functions change. A simple example:
// JS.js .pragma library var _Value = 0; function getValue() { return _Value; } function setValue(val) { _Value = val; } ... // in use Column { Text { text: JS.getValue() } Button { onClicked: JS.setValue(JS.getValue() + 1) } } When _Value changes, I'd like the QML binding to reevaluate. At the moment it doesn't look like it will -- and even using JS._Value directly, and modifying it directly, none of the bindings reevaluate. Is this expected? Is there any way for me to force reevaluation of these bindings (I'd even be happy forcing a re-evaluation of all bindings from C++ -- this is for a development-time feature, so performance is not a concern). Thanks Josh
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest