Access variables declare in qml function
-
Hi, I have declared a function in main.qml, if i want to access the variable inside the function in another qml file, for example access.qml, what should i do?
-
Hi,
Create a property variable. It will be accessible from JS and QML.
-
I think you should return variable instead of accessing the variable inside the function.