<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!-- qbluetoothaddress.cpp --> <title>QBluetoothAddress Class | 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 ><a href="qtbluetooth-module.html">C++ Classes</a></td><td >QBluetoothAddress</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="#public-functions">Public Functions</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">QBluetoothAddress Class</h1> <!-- $$$QBluetoothAddress-brief --> <p>The <a href="qbluetoothaddress.html">QBluetoothAddress</a> class assigns an address to the Bluetooth device. <a href="#details">More...</a></p> <!-- @@@QBluetoothAddress --> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <span class="preprocessor">#include <QBluetoothAddress></span> </td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += bluetooth</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign"> Qt 5.2</td></tr></table></div><ul> <li><a href="qbluetoothaddress-members.html">List of all members, including inherited members</a></li> </ul> <a name="public-functions"></a> <h2 id="public-functions">Public Functions</h2> <div class="table"><table class="alignedsummary"> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#QBluetoothAddress">QBluetoothAddress</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#QBluetoothAddress-1">QBluetoothAddress</a></b>(quint64 <i>address</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#QBluetoothAddress-2">QBluetoothAddress</a></b>(const QString &<i>address</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#QBluetoothAddress-3">QBluetoothAddress</a></b>(const QBluetoothAddress &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#dtor.QBluetoothAddress">~QBluetoothAddress</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#clear">clear</a></b>()</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#isNull">isNull</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#toString">toString</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> quint64 </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#toUInt64">toUInt64</a></b>() const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#operator-not-eq">operator!=</a></b>(const QBluetoothAddress &<i>other</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#operator-lt">operator<</a></b>(const QBluetoothAddress &<i>other</i>) const</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> QBluetoothAddress &</td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#operator-eq">operator=</a></b>(const QBluetoothAddress &<i>other</i>)</td></tr> <tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qbluetoothaddress.html#operator-eq-eq">operator==</a></b>(const QBluetoothAddress &<i>other</i>) const</td></tr> </table></div> <a name="details"></a> <!-- $$$QBluetoothAddress-description --> <div class="descr"> <h2 id="details">Detailed Description</h2> <p>The <a href="qbluetoothaddress.html">QBluetoothAddress</a> class assigns an address to the Bluetooth device.</p> <p>This class holds a Bluetooth address in a platform- and protocol-independent manner.</p> </div> <!-- @@@QBluetoothAddress --> <div class="func"> <h2>Member Function Documentation</h2> <!-- $$$QBluetoothAddress[overload1]$$$QBluetoothAddress --> <h3 class="fn" id="QBluetoothAddress"><a name="QBluetoothAddress"></a>QBluetoothAddress::<span class="name">QBluetoothAddress</span>()</h3> <p>Constructs an null Bluetooth address.</p> <!-- @@@QBluetoothAddress --> <!-- $$$QBluetoothAddress$$$QBluetoothAddressquint64 --> <h3 class="fn" id="QBluetoothAddress-1"><a name="QBluetoothAddress-1"></a>QBluetoothAddress::<span class="name">QBluetoothAddress</span>(<span class="type">quint64</span> <i>address</i>)</h3> <p>Constructs a new Bluetooth address and assigns <i>address</i> to it.</p> <!-- @@@QBluetoothAddress --> <!-- $$$QBluetoothAddress$$$QBluetoothAddressconstQString& --> <h3 class="fn" id="QBluetoothAddress-2"><a name="QBluetoothAddress-2"></a>QBluetoothAddress::<span class="name">QBluetoothAddress</span>(const <span class="type">QString</span> &<i>address</i>)</h3> <p>Constructs a new Bluetooth address and assigns <i>address</i> to it.</p> <p>The format of <i>address</i> can be either XX:XX:XX:XX:XX:XX or XXXXXXXXXXXX, where X is a hexadecimal digit. Case is not important.</p> <!-- @@@QBluetoothAddress --> <!-- $$$QBluetoothAddress$$$QBluetoothAddressconstQBluetoothAddress& --> <h3 class="fn" id="QBluetoothAddress-3"><a name="QBluetoothAddress-3"></a>QBluetoothAddress::<span class="name">QBluetoothAddress</span>(const <span class="type"><a href="qbluetoothaddress.html#QBluetoothAddress">QBluetoothAddress</a></span> &<i>other</i>)</h3> <p>Constructs a new Bluetooth address which is a copy of <i>other</i>.</p> <!-- @@@QBluetoothAddress --> <!-- $$$~QBluetoothAddress[overload1]$$$~QBluetoothAddress --> <h3 class="fn" id="dtor.QBluetoothAddress"><a name="dtor.QBluetoothAddress"></a>QBluetoothAddress::<span class="name">~QBluetoothAddress</span>()</h3> <p>Destroys the <a href="qbluetoothaddress.html">QBluetoothAddress</a>.</p> <!-- @@@~QBluetoothAddress --> <!-- $$$clear[overload1]$$$clear --> <h3 class="fn" id="clear"><a name="clear"></a><span class="type">void</span> QBluetoothAddress::<span class="name">clear</span>()</h3> <p>Sets the Bluetooth address to 00:00:00:00:00:00.</p> <!-- @@@clear --> <!-- $$$isNull[overload1]$$$isNull --> <h3 class="fn" id="isNull"><a name="isNull"></a><span class="type">bool</span> QBluetoothAddress::<span class="name">isNull</span>() const</h3> <p>Returns true if the Bluetooth address is null, otherwise returns false.</p> <!-- @@@isNull --> <!-- $$$toString[overload1]$$$toString --> <h3 class="fn" id="toString"><a name="toString"></a><span class="type">QString</span> QBluetoothAddress::<span class="name">toString</span>() const</h3> <p>Returns the Bluetooth address as a string of the form, XX:XX:XX:XX:XX:XX.</p> <!-- @@@toString --> <!-- $$$toUInt64[overload1]$$$toUInt64 --> <h3 class="fn" id="toUInt64"><a name="toUInt64"></a><span class="type">quint64</span> QBluetoothAddress::<span class="name">toUInt64</span>() const</h3> <p>Returns this Bluetooth address as a quint64.</p> <!-- @@@toUInt64 --> <!-- $$$operator!=[overload1]$$$operator!=constQBluetoothAddress& --> <h3 class="fn" id="operator-not-eq"><a name="operator-not-eq"></a><span class="type">bool</span> QBluetoothAddress::<span class="name">operator!=</span>(const <span class="type"><a href="qbluetoothaddress.html#QBluetoothAddress">QBluetoothAddress</a></span> &<i>other</i>) const</h3> <!-- @@@operator!= --> <!-- $$$operator<[overload1]$$$operator<constQBluetoothAddress& --> <h3 class="fn" id="operator-lt"><a name="operator-lt"></a><span class="type">bool</span> QBluetoothAddress::<span class="name">operator<</span>(const <span class="type"><a href="qbluetoothaddress.html#QBluetoothAddress">QBluetoothAddress</a></span> &<i>other</i>) const</h3> <p>Returns true if the Bluetooth address is less than <i>other</i>, otherwise returns false.</p> <!-- @@@operator< --> <!-- $$$operator=[overload1]$$$operator=constQBluetoothAddress& --> <h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qbluetoothaddress.html#QBluetoothAddress">QBluetoothAddress</a></span> &QBluetoothAddress::<span class="name">operator=</span>(const <span class="type"><a href="qbluetoothaddress.html#QBluetoothAddress">QBluetoothAddress</a></span> &<i>other</i>)</h3> <p>Assigns <i>other</i> to this Bluetooth address.</p> <!-- @@@operator= --> <!-- $$$operator==[overload1]$$$operator==constQBluetoothAddress& --> <h3 class="fn" id="operator-eq-eq"><a name="operator-eq-eq"></a><span class="type">bool</span> QBluetoothAddress::<span class="name">operator==</span>(const <span class="type"><a href="qbluetoothaddress.html#QBluetoothAddress">QBluetoothAddress</a></span> &<i>other</i>) const</h3> <p>Compares this Bluetooth address to <i>other</i>.</p> <p>Returns true if the two Bluetooth addresses are equal, otherwise returns false.</p> <!-- @@@operator== --> </div> </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>