Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Sending Data Between different QML files



  • Hello I am a bit new new too QML and am working on a project using QML code in Qt Creator. I have reached a frustrating dead end in my project, and am currently being hampered by my inability to send one variable to another file.
    In my one file (FlyDisplayView.qml). I have created a boolean variable vehiclechecked and currently set it to false.
    property bool vehiclechecked: false

    Later in the code there is a button that if clicked will change that var too true(it does other stuff too but only focusing on my created variable).
    onClicked:{
    vehiclechecked = true
    }

    This works internally in the file but when I attempt to access this outside of the file(even in the same folder) it doesn't work. Anyone got any advice?


Log in to reply