[Qt-qml] Not able to access ids from js code
Leonardo Cunha
leo.cunha at nokia.com
Thu Sep 9 12:00:40 CEST 2010
hi,
I tried to change the ../declarative/demos/calculator to instatiate part of
the UI as a component, with Loader or component.createObject, see patch:
http://pastebin.com/uXp6RVi7.
With both of these solutions in the patch, I get this error when clicking on
any of the buttons: "calculator/Core/calculator.js:23: ReferenceError: Can't
find variable: display"
I was expecting the scope chain to be the same for the javascript file in
these situations, but seems this is not the case.
Is this an expected behavior or a bug?
br,
--
Leonardo Cunha
Software Engineer
Nokia, Qt
More information about the Qt-qml
mailing list