QBluetooth Namespace

The QBluetooth namespace provides classes and functions related to Bluetooth. More...

Header: #include <QBluetooth>
qmake: QT += bluetooth
Since: Qt 5.2

Types

QLowEnergyHandle
enum class Security { NoSecurity, Authorization, Authentication, Encryption, Secure }

Detailed Description

Type Documentation

[since 5.4] QLowEnergyHandle

Typedef for Bluetooth Low Energy ATT attribute handles.

This typedef was introduced in Qt 5.4.

enum class QBluetooth::Security

This enum describe the security requirements of a Bluetooth service.

ConstantValueDescription
QBluetooth::Security::NoSecurity0x00The service does not require any security.
QBluetooth::Security::Authorization0x01The service requires authorization by the user, unless the device is Authorized-Paired.
QBluetooth::Security::Authentication0x02The service requires authentication. Device must be paired, and the user is prompted on connection unless the device is Authorized-Paired.
QBluetooth::Security::Encryption0x04The service requires the communication link to be encrypted. This requires the device to be paired.
QBluetooth::Security::Secure0x08The service requires the communication link to be secure. Simple Pairing from Bluetooth 2.1 or greater is required. Legacy pairing is not permitted.