Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved circular gauge update from serial data

    Qt in Education
    2
    2
    674
    Loading More Posts
    • 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
      kasra last edited by

      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?

      KazuoAsano 1 Reply Last reply Reply Quote 0
      • KazuoAsano
        KazuoAsano Qt Champions 2018 @kasra last edited by

        @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 Reply Quote 2
        • First post
          Last post