QBluetoothAddress Class
La clase QBluetoothAddress asigna una dirección al dispositivo Bluetooth. Más...
| Cabecera: | #include <QBluetoothAddress> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Bluetooth)target_link_libraries(mytarget PRIVATE Qt6::Bluetooth) |
| qmake: | QT += bluetooth |
Funciones públicas
| QBluetoothAddress() | |
| QBluetoothAddress(const QString &address) | |
| QBluetoothAddress(quint64 address) | |
| void | clear() |
| bool | isNull() const |
| QString | toString() const |
| quint64 | toUInt64() const |
No miembros relacionados
(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) |
Descripción detallada
Esta clase contiene una dirección Bluetooth de forma independiente de la plataforma y el protocolo.
Documentación de las funciones de los miembros
[constexpr noexcept] QBluetoothAddress::QBluetoothAddress()
Construye una dirección Bluetooth nula.
[explicit] QBluetoothAddress::QBluetoothAddress(const QString &address)
Construye una nueva dirección Bluetooth y le asigna address.
El formato de address puede ser XX:XX:XX:XX:XX:XX o XXXXXXXXXXXX, donde X es un dígito hexadecimal. Las mayúsculas y minúsculas no son importantes.
[explicit constexpr noexcept] QBluetoothAddress::QBluetoothAddress(quint64 address)
Construye una nueva dirección Bluetooth y le asigna address.
[noexcept] void QBluetoothAddress::clear()
Establece la dirección Bluetooth en 00:00:00:00:00:00.
[noexcept] bool QBluetoothAddress::isNull() const
Devuelve true si la dirección Bluetooth es nula, en caso contrario devuelve false.
QString QBluetoothAddress::toString() const
Devuelve la dirección Bluetooth como una cadena de la forma, XX:XX:XX:XX:XX:XX.
[noexcept] quint64 QBluetoothAddress::toUInt64() const
Devuelve esta dirección Bluetooth como un quint64.
No miembros relacionados
[noexcept, since 6.6] size_t qHash(const QBluetoothAddress &key, size_t seed = 0)
Devuelve el valor hash para key, usando seed para sembrar el cálculo.
Esta función se introdujo en Qt 6.6.
bool operator!=(const QBluetoothAddress &a, const QBluetoothAddress &b)
Devuelve true si las dos direcciones Bluetooth a y b no son iguales, en caso contrario devuelve false.
bool operator<(const QBluetoothAddress &a, const QBluetoothAddress &b)
Devuelve true si la dirección Bluetooth a es menor que b, en caso contrario devuelve false.
bool operator==(const QBluetoothAddress &a, const QBluetoothAddress &b)
Devuelve true si las dos direcciones Bluetooth a y b son iguales, en caso contrario devuelve false.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. 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.