The QBluetoothAddress class assigns an address to the Bluetooth device. More...
| Header: | #include <QBluetoothAddress> |
| qmake: | QT += bluetooth |
| QBluetoothAddress() | |
| QBluetoothAddress(const QString &address) | |
| QBluetoothAddress(quint64 address) | |
| void | clear() |
| bool | isNull() const |
| QString | toString() const |
| quint64 | toUInt64() const |
(since 6.6) size_t |
qHash(const QBluetoothAddress &key, size_t seed = 0) |
| bool | operator!=(const QBluetoothAddress &a, const QBluetoothAddress &b) |
| bool | operator<(const QBluetoothAddress &a, const QBluetoothAddress &b) |
| bool | operator==(const QBluetoothAddress &a, const QBluetoothAddress &b) |
This class holds a Bluetooth address in a platform- and protocol-independent manner.
[constexpr noexcept] QBluetoothAddress::QBluetoothAddress()Constructs a null Bluetooth Address.
[explicit] QBluetoothAddress::QBluetoothAddress(const QString &address)Constructs a new Bluetooth address and assigns address to it.
The format of address can be either XX:XX:XX:XX:XX:XX or XXXXXXXXXXXX, where X is a hexadecimal digit. Case is not important.
[explicit constexpr noexcept] QBluetoothAddress::QBluetoothAddress(quint64 address)Constructs a new Bluetooth address and assigns address to it.
[noexcept] void QBluetoothAddress::clear()Sets the Bluetooth address to 00:00:00:00:00:00.
[noexcept] bool QBluetoothAddress::isNull() constReturns true if the Bluetooth address is null, otherwise returns false.
Returns the Bluetooth address as a string of the form, XX:XX:XX:XX:XX:XX.
[noexcept] quint64 QBluetoothAddress::toUInt64() constReturns this Bluetooth address as a quint64.
[noexcept, since 6.6] size_t qHash(const QBluetoothAddress &key, size_t seed = 0)Returns the hash value for the key, using seed to seed the calculation.
This function was introduced in Qt 6.6.
Returns true if the two Bluetooth addresses a and b are not equal, otherwise returns false.
Returns true if the Bluetooth address a is less than b, otherwise returns false.
Returns true if the two Bluetooth addresses a and b are equal, otherwise returns false.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: