The QBluetoothAddress class assigns an address to the Bluetooth device. More...
Header: | #include <QBluetoothAddress> |
qmake: | QT += bluetooth |
Since: | Qt 5.2 |
QBluetoothAddress(const QBluetoothAddress &other) | |
QBluetoothAddress(const QString &address) | |
QBluetoothAddress(quint64 address) | |
QBluetoothAddress() | |
QBluetoothAddress & | operator=(const QBluetoothAddress &other) |
~QBluetoothAddress() | |
void | clear() |
bool | isNull() const |
QString | toString() const |
quint64 | toUInt64() const |
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.
Constructs a new Bluetooth address which is a copy of other.
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.
Constructs a new Bluetooth address and assigns address to it.
Constructs an null Bluetooth Address.
Assigns other to this Bluetooth address.
Destroys the QBluetoothAddress.
Sets the Bluetooth address to 00:00:00:00:00:00.
Returns 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.
Returns this Bluetooth address as a quint64.
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
.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qbluetoothaddress.html