Qt Bluetooth QML 类型

The Qt Bluetooth QML Types enable an application to scan for devices and connect and interact with them in an easier way than the C++ Classes. However, it is a bit more limited than the C++ API. You can always use the C++ API to create QML plugins with the flexibility you need.

要在应用程序中使用模块的类,需要以下 import 语句在 .qml 文件:

import QtBluetooth 5.2
					
BluetoothDiscoveryModel Enables searching for the Bluetooth devices and services in range
BluetoothService Provides information about a particular Bluetooth service
BluetoothSocket Enables connecting and communicating with a Bluetooth service or device