展示如何通過串口異步接收數據。
命令行讀取器異步 展示如何使用 QSerialPort class for receiving data asynchronously over the selected serial port with the desired settings.
This command line reader async example receives data asynchronously over the selected serial port in a console, provided by the QSerialPort 類。
For receiving data synchronously over the selected serial port, use the read() or readAll() methods, and readyRead() 信號。
要運行範例從 Qt Creator ,打開 歡迎 模式,然後選擇範例從 範例 。更多信息,拜訪 構建和運行範例 .