Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Method to pass data around QML elements like Page?
Uknight last edited by
I'm currently developing a QML + C++ app and am in the midst of the initial development process.
I'm trying to make the code modular (not sure if I used that term right) by breaking down the various functions of the program (e.g. A settings page would be a standalone qml file) instead of having everything in one mega qml file.
Basically what I aim to do is main qml file launches pages based on what is needed and then grabs that data and launches another page.
Question is, how do I pass data around? Quick example is that I have a GPS page that will grab the coordinates and then exit after passing the data to another page to use that coordinates.
One way would be to have the main qml file hold a vector and then pass data back and forth via the property alias?
Thank you for your time.