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.