Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Access variables declare in qml function
beh_zad last edited by
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?
Create a property variable. It will be accessible from JS and QML.
Vincent007 last edited by
I think you should return variable instead of accessing the variable inside the function.