Important: Please read the Qt Code of Conduct -

How to track information about COM ports in real time in QT5

  • I just convert my project from qt4 to qt5. Early I used the SerialDeviceEnumerator class to obtain an information about COM ports in real time, this class has the signal that indicate of changing a number of COM ports in system.
    In qt5 I use an embedded class QSerialPort with QSerialPortInfo, but there is no the same signal in new classes. How can I get real time information about COM ports in qt5?

  • You could setup a QTimer signal instead, say every 10th seconds you ask for availablePorts() and compare against the previous QList result.

  • Thanks, this solution is obvious, but I thought I was missing something, because this is very important and necessary function and it is very strange that it does not exist in this class.

Log in to reply