Qt Bluetooth QML Types

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.

To use the classes of the module in your application you need the following import statement in your .qml file:


  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