- Qt 5.15
- Qt Bluetooth
- Qt Bluetooth C++ Classes
- Qt 5.15.12 Reference Documentation

# Qt Bluetooth C++ Classes

Enables basic Bluetooth operations like scanning for devices and connecting them. More...

This module was introduced in Qt 5.2.

## Namespaces

QBluetooth | Classes and functions related to Bluetooth

## Classes

QBluetoothAddress | Assigns an address to the Bluetooth device
QBluetoothDeviceDiscoveryAgent | Discovers the Bluetooth devices nearby
QBluetoothDeviceInfo | Stores information about the Bluetooth device
QBluetoothHostInfo | Encapsulates the details of a local QBluetooth device
QBluetoothLocalDevice | Enables access to the local Bluetooth device
QBluetoothServer | Uses the RFCOMM or L2cap protocol to communicate with a Bluetooth device
QBluetoothServiceDiscoveryAgent | Enables you to query for Bluetooth services
QBluetoothServiceInfo | Enables access to the attributes of a Bluetooth service
QBluetoothServiceInfo::Alternative | Stores attributes of a Bluetooth Data Element Alternative
QBluetoothServiceInfo::Sequence | Stores attributes of a Bluetooth Data Element Sequence
QBluetoothSocket | Enables connection to a Bluetooth device running a bluetooth server
QBluetoothTransferManager | Transfers data to another device using Object Push Profile (OPP)
QBluetoothTransferReply | Stores the response for a data transfer request
QBluetoothTransferRequest | Stores information about a data transfer request
QBluetoothUuid | Generates a UUID for each Bluetooth service
QLowEnergyAdvertisingData | Represents the data to be broadcast during Bluetooth Low Energy advertising
QLowEnergyAdvertisingParameters | Represents the parameters used for Bluetooth Low Energy advertising
QLowEnergyAdvertisingParameters::AddressInfo | QLowEnergyAdvertisingParameters::AddressInfo defines the elements of a white list
QLowEnergyCharacteristic | Stores information about a Bluetooth Low Energy service characteristic
QLowEnergyCharacteristicData | Used to set up GATT service data
QLowEnergyConnectionParameters | Used when requesting or reporting an update of the parameters of a Bluetooth LE connection
QLowEnergyController | Access to Bluetooth Low Energy Devices
QLowEnergyDescriptor | Stores information about the Bluetooth Low Energy descriptor
QLowEnergyDescriptorData | Used to create GATT service data
QLowEnergyService | Represents an individual service on a Bluetooth Low Energy Device
QLowEnergyServiceData | Used to set up GATT service data

## Detailed Description

The Qt Bluetooth C++ API enables an application to scan for devices and connect and interact with them in a more flexible way than the Qt Bluetooth QML Types.

To use the C++ library in your application, add the following configuration option to your `.pro` file:

     QT += bluetooth