命令行读取器异步 展示如何使用 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 ,打开 欢迎 模式,然后选择范例从 范例 。更多信息,拜访 构建和运行范例 .
文件: