Hi all..
Is it possible to access to javascript file in multi qml files??? suppose i've parent qml file which js file is defined there and i want to access to it in child qml files
Thanks
Hi all..
Is it possible to access to javascript file in multi qml files??? suppose i've parent qml file which js file is defined there and i want to access to it in child qml files
Thanks
You can declare the file to be a library. Then you can include it multiple times.
alizadeh91 (16th July 2012)
Thanks for reply but there is a problem
When i define the js file as a ".pragma library" it doesn't recognize id of qml objects.
What's the problem?
Thanks.I've passed the id by function arguments and it works In A library we can't define variables??!! I've defined them and there is nothing wrong!
Added after 12 minutes:
Just another question! I create some dynamic object in this .js file and i want to get focused element in this file. How can i do that??
Thanks anyway
Last edited by alizadeh91; 16th July 2012 at 13:41.
Bookmarks