QSerialPort provides a set of functions that suspend the calling thread until certain signals are emitted. These functions can be used to implement blocking serial ports: waitForReadyRead() blocks calls until new data is available for reading. ...
[virtual] bool QSerialPort::waitForReadyRead(int msecs) Reimplemented from QIODevice::waitForReadyRead(). This function blocks until new data is available for reading and the readyRead() signal has been emitted. The function will timeout after msecs milliseconds. The function returns true if ...