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. [solved]QSerial Port readReady() signal not working with QML based GUI
QtWS25 Last Chance

[solved]QSerial Port readReady() signal not working with QML based GUI

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 1.1k 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.
  • R Offline
    R Offline
    rapidEE
    wrote on last edited by rapidEE
    #1

    I am using qml for the first time and am trying to integrate a c++ class that uses QSerialport with a qml gui.
    the class only has to notify the qml when the serial port is connected or disconnected. I can connect/disconnect and write to the port just fine but am not getting any data being returned. I have tried to read the port manually which returns nothing and I have also tried to use the readyRead() signal which does not seem to work. Does anyone have any suggestions on how too properly use QSerialport with a qml gui?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rapidEE
      wrote on last edited by rapidEE
      #2

      Thanks for the quick reply but after a night of scratching my head I figured out that the DTR flag needed to be manually set. This was for an arduino leonardo which requires the DTR signal before it will work properly. I assume this will be the same for all arduino boards that utilize an atmega chip with usb.

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

        Nice !

        Thanks for sharing your solution.

        Please update the thread title prepending [solved] so other forum users may know a solution has been found :)

        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