You can't locate objects by id strings (unless you are in a context
where you could just use the id instead of eval anyways). If you want
to pass around a reference to an object, you can do
"var theCheckBox = english_weight1"
somewhere where the english_weight1 id is accessible. Then you can
pass i
Hi Eric,
What is the reason you can't use it like this:
if (english_weight1.checked)
but instead you are refering to the item by name? Maybe your mistake
is with the construction you are using?
BR,
Filip
On Tue, Apr 15, 2014 at 6:50 AM, Eric Feigenson wrote:
> Hello all...
>
> I'm writ
Hello all...
I'm writing some JavaScript code inside QML. What I'd like to do is be able to
access an object via id where the id is in a JavaScript string.
For example, given the QML:
CheckBox {
id: english_weight1
text: qsTr("2.5 lb")
}
and the JavaScr