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. Binding QString Data to QML Property

Binding QString Data to QML Property

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 185 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.
  • S Offline
    S Offline
    SnprSlick
    wrote on last edited by
    #1

    Hello, let me preface by saying I have little to no coding experience up until the first of this month.

    I'm working on creating an embedded app on a raspberry pi with an arduino receiving serial data and outputting to the Pi.

    I've figured out how to receive the data from the serial port using QtSerial, and I have the data being sent to a QString called "serialOutput".

    My question is how do I get the "serialOutput" QString to bind to a an alias on my QML. I've watched and applied the logic from the Qt automotive cluster tutorial where they use a javascript 'simulator' file to simulate RPM going up and down. I would like to replace that data with my serialOutput data.

    Go easy on me please!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Did you read the QML C++ Integration chapter in Qt's documentation ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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