View Full Version : Read data from EditText from Javascript

5th September 2011, 09:35
I have a EditText which will be viewed in all screen of my Application. All my screen are based on QML and loaded in a Qt Frame
At the start of my project i will set a value to the EditText. I need to get the value in the third screen for a Javascript File
How can i read the value from the Editext using Javascript

Is there any function like document.getElementById('label').value as in Javascript/HTMl

9th September 2011, 11:38
I would suggest to save this value as the property

property string name: "value"
and than you could access it like this , assume that you defined it in rectangle which id is "foo"