Qt Bluetooth C++ 類

啓用基本藍牙操作,像掃描設備並連接它們。 更多...

該模塊在 Qt 5.2 引入。

名稱空間

QBluetooth 藍牙相關的類和函數

QLowEnergyAdvertisingParameters::AddressInfo QLowEnergyAdvertisingParameters::AddressInfo defines the elements of a white list
QBluetoothServiceInfo::Alternative Stores attributes of a Bluetooth Data Element Alternative
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
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 為每個藍牙服務生成 UUID (通用唯一標識符)
QLowEnergyAdvertisingData 錶示藍牙低功耗廣告期間要廣播的數據
QLowEnergyAdvertisingParameters 錶示用於藍牙低功耗廣告的參數
QLowEnergyCharacteristic Stores information about a Bluetooth Low Energy service characteristic
QLowEnergyCharacteristicData 用於設置 GATT 服務數據
QLowEnergyConnectionParameters 當請求或報告藍牙 LE 連接的參數更新時使用
QLowEnergyController Access to Bluetooth Low Energy Devices
QLowEnergyDescriptor Stores information about the Bluetooth Low Energy descriptor
QLowEnergyDescriptorData 用於創建 GATT 服務數據
QLowEnergyService Represents an individual service on a Bluetooth Low Energy Device
QLowEnergyServiceData 用於設置 GATT 服務數據
QBluetoothServiceInfo::Sequence Stores attributes of a Bluetooth Data Element Sequence

詳細描述

The Qt Bluetooth C++ API 使應用程序能夠掃描設備並以更靈活方式連接設備並與之交互相比 Qt Bluetooth QML 類型 .

要使用 C++ 庫在應用程序,添加以下配置選項到 .pro 文件:

QT += bluetooth