展示如何通過串口異步發送數據。
Command Line Writer Async 展示如何使用 QSerialPort class for sending data asynchronously over the selected serial port with the desired settings.
This command line writer async example sends data asynchronously over the selected serial port in a console, provided by the QSerialPort 類。
For sending data asynchronously over the selected serial port, use the write() method and bytesWritten() 信號。
要運行範例從 Qt Creator ,打開 歡迎 模式,然後選擇範例從 範例 。更多信息,拜訪 構建和運行範例 .
文件: