Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Learning
  3. Qt in Education
  4. circular gauge update from serial data
QtWS25 Last Chance

circular gauge update from serial data

Scheduled Pinned Locked Moved Unsolved Qt in Education
2 Posts 2 Posters 884 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.
  • K Offline
    K Offline
    kasra
    wrote on last edited by
    #1

    I made a circular gauge in qt qml. I want to show speed data from GPS madoule, GPS send data to serial port and I have data in serial, I need to write a code in Qt that update data from serial port and show in gauge in qt. can anyone help me?

    KazuoAsanoK 1 Reply Last reply
    0
    • K kasra

      I made a circular gauge in qt qml. I want to show speed data from GPS madoule, GPS send data to serial port and I have data in serial, I need to write a code in Qt that update data from serial port and show in gauge in qt. can anyone help me?

      KazuoAsanoK Offline
      KazuoAsanoK Offline
      KazuoAsano
      Qt Champions 2018
      wrote on last edited by
      #2

      @kasra ,

      You can use QSerialPort class to receive data.

      Qt Documentation : QSerialPort Class

      When the serial port receives new data, the signal readyRead() is emitted it.
      I think that if it binding to QML. you can handle this data at a circular gauge in qt qml.

      Please also refer to QSerialPort sample.
      Qt Documentation : Terminal Example

      1 Reply Last reply
      2

      • Login

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