<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- bluetooth-cpp.qdoc --> <title>Qt Bluetooth C++ Classes | Qt Bluetooth 5.12.2</title> <link rel="stylesheet" type="text/css" href="style/offline-simple.css" /> <script type="text/javascript"> document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css"); // loading style sheet breaks anchors that were jumped to before // so force jumping to anchor again setTimeout(function() { var anchor = location.hash; // need to jump to different anchor first (e.g. none) location.hash = "#"; setTimeout(function() { location.hash = anchor; }, 0); }, 0); </script> </head> <body> <div class="header" id="qtdocheader"> <div class="main"> <div class="main-rounded"> <div class="navigationbar"> <table><tr> <td >Qt 5.12</td><td ><a href="qtbluetooth-index.html">Qt Bluetooth</a></td><td >Qt Bluetooth C++ Classes</td></tr></table><table class="buildversion"><tr> <td id="buildversion" width="100%" align="right"><a href="qtbluetooth-index.html">Qt 5.12.2 Reference Documentation</a></td> </tr></table> </div> </div> <div class="content"> <div class="line"> <div class="content mainContent"> <div class="sidebar"> <div class="toc"> <h3><a name="toc">Contents</a></h3> <ul> <li class="level1"><a href="#namespaces">Namespaces</a></li> <li class="level1"><a href="#classes">Classes</a></li> <li class="level1"><a href="#details">Detailed Description</a></li> </ul> </div> <div class="sidebar-content" id="sidebar-content"></div></div> <h1 class="title">Qt Bluetooth C++ Classes</h1> <span class="subtitle"></span> <!-- $$$QtBluetooth-brief --> <p>Enables basic Bluetooth operations like scanning for devices and connecting them. <a href="#details">More...</a></p> <!-- @@@QtBluetooth --> <p>This module was introduced in Qt 5.2.</p> <a name="namespaces"></a> <h2 id="namespaces">Namespaces</h2> <div class="table"><table class="annotated"> <tr class="odd topAlign"><td class="tblName"><p><a href="qbluetooth.html">QBluetooth</a></p></td><td class="tblDescr"><p>Classes and functions related to Bluetooth</p></td></tr> </table></div> <a name="classes"></a> <h2 id="classes">Classes</h2> <div class="table"><table class="annotated"> <tr class="odd topAlign"><td class="tblName"><p><a href="qlowenergyadvertisingparameters-addressinfo.html">QLowEnergyAdvertisingParameters::AddressInfo</a></p></td><td class="tblDescr"><p>QLowEnergyAdvertisingParameters::AddressInfo defines the elements of a white list</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qbluetoothserviceinfo-alternative.html">QBluetoothServiceInfo::Alternative</a></p></td><td class="tblDescr"><p>Stores attributes of a Bluetooth Data Element Alternative</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qbluetoothaddress.html">QBluetoothAddress</a></p></td><td class="tblDescr"><p>Assigns an address to the Bluetooth device</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qbluetoothdevicediscoveryagent.html">QBluetoothDeviceDiscoveryAgent</a></p></td><td class="tblDescr"><p>Discovers the Bluetooth devices nearby</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qbluetoothdeviceinfo.html">QBluetoothDeviceInfo</a></p></td><td class="tblDescr"><p>Stores information about the Bluetooth device</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qbluetoothhostinfo.html">QBluetoothHostInfo</a></p></td><td class="tblDescr"><p>Encapsulates the details of a local QBluetooth device</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qbluetoothlocaldevice.html">QBluetoothLocalDevice</a></p></td><td class="tblDescr"><p>Enables access to the local Bluetooth device</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qbluetoothserver.html">QBluetoothServer</a></p></td><td class="tblDescr"><p>Uses the RFCOMM or L2cap protocol to communicate with a Bluetooth device</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qbluetoothservicediscoveryagent.html">QBluetoothServiceDiscoveryAgent</a></p></td><td class="tblDescr"><p>Enables you to query for Bluetooth services</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qbluetoothserviceinfo.html">QBluetoothServiceInfo</a></p></td><td class="tblDescr"><p>Enables access to the attributes of a Bluetooth service</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qbluetoothsocket.html">QBluetoothSocket</a></p></td><td class="tblDescr"><p>Enables connection to a Bluetooth device running a bluetooth server</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qbluetoothtransfermanager.html">QBluetoothTransferManager</a></p></td><td class="tblDescr"><p>Transfers data to another device using Object Push Profile (OPP)</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qbluetoothtransferreply.html">QBluetoothTransferReply</a></p></td><td class="tblDescr"><p>Stores the response for a data transfer request</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qbluetoothtransferrequest.html">QBluetoothTransferRequest</a></p></td><td class="tblDescr"><p>Stores information about a data transfer request</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qbluetoothuuid.html">QBluetoothUuid</a></p></td><td class="tblDescr"><p>Generates a UUID for each Bluetooth service</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qlowenergyadvertisingdata.html">QLowEnergyAdvertisingData</a></p></td><td class="tblDescr"><p>Represents the data to be broadcast during Bluetooth Low Energy advertising</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qlowenergyadvertisingparameters.html">QLowEnergyAdvertisingParameters</a></p></td><td class="tblDescr"><p>Represents the parameters used for Bluetooth Low Energy advertising</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qlowenergycharacteristic.html">QLowEnergyCharacteristic</a></p></td><td class="tblDescr"><p>Stores information about a Bluetooth Low Energy service characteristic</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qlowenergycharacteristicdata.html">QLowEnergyCharacteristicData</a></p></td><td class="tblDescr"><p>Used to set up GATT service data</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qlowenergyconnectionparameters.html">QLowEnergyConnectionParameters</a></p></td><td class="tblDescr"><p>Used when requesting or reporting an update of the parameters of a Bluetooth LE connection</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qlowenergycontroller.html">QLowEnergyController</a></p></td><td class="tblDescr"><p>Access to Bluetooth Low Energy Devices</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qlowenergydescriptor.html">QLowEnergyDescriptor</a></p></td><td class="tblDescr"><p>Stores information about the Bluetooth Low Energy descriptor</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qlowenergydescriptordata.html">QLowEnergyDescriptorData</a></p></td><td class="tblDescr"><p>Used to create GATT service data</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qlowenergyservice.html">QLowEnergyService</a></p></td><td class="tblDescr"><p>Represents an individual service on a Bluetooth Low Energy Device</p></td></tr> <tr class="odd topAlign"><td class="tblName"><p><a href="qlowenergyservicedata.html">QLowEnergyServiceData</a></p></td><td class="tblDescr"><p>Used to set up GATT service data</p></td></tr> <tr class="even topAlign"><td class="tblName"><p><a href="qbluetoothserviceinfo-sequence.html">QBluetoothServiceInfo::Sequence</a></p></td><td class="tblDescr"><p>Stores attributes of a Bluetooth Data Element Sequence</p></td></tr> </table></div> <!-- $$$QtBluetooth-description --> <a name="details"></a> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qtbluetooth-index.html">Qt Bluetooth</a> C++ API enables an application to scan for devices and connect and interact with them in a more flexible way than the <a href="qtbluetooth-qmlmodule.html">Qt Bluetooth QML Types</a>.</p> <p>To use the C++ library in your application, add the following configuration option to your <code>.pro</code> file:</p> <pre class="cpp"> QT += bluetooth </pre> </div> <!-- @@@QtBluetooth --> </div> </div> </div> </div> </div> <div class="footer"> <p> <acronym title="Copyright">©</acronym> 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners.<br/> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br/> Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. </p> </div> </body> </html>