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

QSerialPort not Working on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.3.1
    • Serial Port
    • None
    • Qt 6.3.1 on Windows 10.
      Compiler is MSVC 2019 64-bit or MingW 11.2.0 64-bit.
      Using a USB to serial converter.
    • Windows

    Description

      QSerial port in Qt 6 is not able to actually open a port.

       

      The serialport/cenumerator example program lists one or more ports, e.g. "COM3". But if I attempt to open the port I get the error "The system cannot find the file specified".
      e.g.

          QSerialPort port = QSerialPort("COM3");
          out << port.open(QIODeviceBase::ReadWrite);
          out << port.errorString();

       

      With the serialport/terminal example program it lists COM3 as available but fails in the same way if I try to connect to the port.

       

       

      It works on the Linux platform.

      Attachments

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

        Activity

          People

            ablasche Alex Blasche
            tranter Jeff Tranter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes