Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Method to pass data around QML elements like Page?
Forum Updated to NodeBB v4.3 + New Features

Method to pass data around QML elements like Page?

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 2.3k Views 1 Watching
  • 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.
  • U Offline
    U Offline
    Uknight
    wrote on last edited by
    #1

    Hi there.

    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.

    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