[Qt-qml] Property Bindings *within* Javascript?

michael.brasser at nokia.com michael.brasser at nokia.com
Tue Oct 26 02:08:17 CEST 2010


Hi,

On 24/10/2010, at 12:49 AM, ext Charley Bay wrote:

> The QML docs state:
> 
>> Property bindings are the most common use of JavaScript in QML.
>> Property bindings associate the result of a JavaScript expression
>> with a property of an object.
> 
> ...found at:
> 
> <http://doc.qt.nokia.com/4.7/qdeclarativescope.html>
> 
> IMHO, this is one of the most pivotal concepts in QML.
> 
> However, I'm trying to figure out how to *set* such a binding
> *within* javascript.  Can this be done?

There is currently no API for establishing a binding from within javascript (PropertyChanges is currently the only way to set a binding "after-the-fact"). Would you mind adding a suggestion for this via the task tracker (http://bugreports.qt.nokia.com)?

Regards,
Michael





More information about the Qt-qml mailing list