Qt Serial Port 示例
该 Qt Serial Port 模块提供了以下示例供参考,以帮助理解 API 的使用方法。
运行示例
您可以通过以下方式运行示例:
- Qt Creator
打开Welcome 模式,并从Examples 中选择该示例。有关更多信息,请参阅Qt Creator :教程:构建和运行。
- Qt Extension for Visual Studio Code
在Command Palette 中运行Qt: Open Qt examples 命令,并从列表中选择示例。有关更多信息,请参阅Qt Extension for Visual Studio Code :教程:构建和运行。
演示如何在非GUI线程中使用QSerialPort的同步API。 | |
演示如何在工作线程中使用 QSerialPort 的同步 API。 | |
演示如何使用 QSerialPort 的各项功能。 |
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.