![]() ![]() ![]() The Blocking Slave 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. The asynchronous (non-blocking) approach.QSerialPort supports two general programming approaches: Also, the class QSerialPortInfo is invoked to display information about the serial ports available in the system. This example shows the main features of the QSerialPort class, like configuration, I/O implementation and so forth. Terminal shows how to create a terminal for a simple serial interface by using Qt Serial Port. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |