Qt Bluetooth 示例
这里的示例涵盖了Qt Bluetooth API 的所有功能。您可以在各自的文档中找到这些示例,但也可以从此处访问它们。
C++ 教程
蓝牙聊天示例包含如何使用 C++ API 创建 RFCOMM 服务器和客户端并在两者之间交换数据的教程。
C++ 示例
| 示例 | 说明 |
|---|---|
| 蓝牙聊天 | 通过蓝牙的简单聊天服务器和客户端。 |
QML 示例
| 示例 | 说明 |
|---|---|
| QML 蓝牙低能耗心率游戏 | 连接蓝牙低功耗心率带并接收测量结果,如当前脉搏。 |
| QML 蓝牙低功耗扫描仪 | 扫描蓝牙低功耗设备并显示其服务和特性。 |
© 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.