QBluetoothHostInfo Class
La clase QBluetoothHostInfo encapsula los detalles de un dispositivo local QBluetooth. Más información...
| Cabecera: | #include <QBluetoothHostInfo> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Bluetooth) target_link_libraries(mytarget PRIVATE Qt6::Bluetooth) |
| qmake: | QT += bluetooth |
Funciones públicas
| QBluetoothHostInfo() | |
| QBluetoothHostInfo(const QBluetoothHostInfo &other) | |
| ~QBluetoothHostInfo() | |
| QBluetoothAddress | address() const |
| QString | name() const |
| void | setAddress(const QBluetoothAddress &address) |
| void | setName(const QString &name) |
| QBluetoothHostInfo & | operator=(const QBluetoothHostInfo &other) |
Elementos no miembros relacionados
| bool | operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
| bool | operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
Descripción detallada
Esta clase contiene el nombre y la dirección de un dispositivo Bluetooth local.
Documentación de las funciones de miembro
QBluetoothHostInfo::QBluetoothHostInfo()
Crea un objeto QBluetoothHostInfo de tipo nulo.
QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)
Crea un nuevo objeto `QBluetoothHostInfo` que es una copia de ` other`.
[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()
Destruye el « QBluetoothHostInfo ».
QBluetoothAddress QBluetoothHostInfo::address() const
Devuelve la dirección Bluetooth como un objeto ` QBluetoothAddress`.
Véase también setAddress().
QString QBluetoothHostInfo::name() const
Devuelve el nombre visible para el usuario del objeto de información del host.
Véase también setName().
void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)
Establece la dirección de enlace de Bluetooth ( address ) para este objeto de información de host Bluetooth.
Véase también address().
void QBluetoothHostInfo::setName(const QString &name)
Establece el campo « name » del objeto de información del host.
Véase también name().
QBluetoothHostInfo &QBluetoothHostInfo::operator=(const QBluetoothHostInfo &other)
Asigna « other » a esta instancia de « QBluetoothHostInfo ».
Elementos no miembros relacionados
bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Devuelve « true » si « a » y « b » no son iguales; en caso contrario, devuelve « false ».
bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Devuelve « true » si « 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.