Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31918

QSerialPort::waitForReadyRead returns immediately even if there is no data recieved. Windows port only

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.1.0 RC1
    • Serial Port
    • None
    • OS: Windows 7 64bit, Qt version MinGW 5.1RC1

    Description

      QSerialPort::waitForReadyRead returns immediately even if there is no data recieved. Windows port only

      QSerialPort port;

      ... // open, init, other

      port.waitForReadyRead(100);
      QByteArray chunk = port.readAll()

      If the serial input buffer is empty the following code will not block for 100mS, and chunk will be empty.

      ps. I could not find the SerialPort Component in the Jira system thus the component field might be changed or SerialPort Component needs to be added into the system.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kuzulis Denis Shienkov
            boris.barbulovski Boris Barbulovski
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes