![]() The Blocking Receiver example illustrates the synchronous approach. ![]() In this example, the asynchronous approach is demonstrated. QSerialPort::waitForReadyRead()) to suspend the calling thread until the operation has completed. In non-GUI and multithreaded applications, the waitFor.() functions can be called (i.e. When the data is sent to the serial port, QSerialPort emits bytesWritten(). For example, QSerialPort::write() returns immediately. QSerialPort emits a signal when the operation is finished. Operations are scheduled and performed when the control returns to Qt's event loop.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |