Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Sending Data Between different QML files
Qt 6.11 is out! See what's new in the release blog

Sending Data Between different QML files

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 249 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gjk88
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved