QBluetoothHostInfo Class
A classe QBluetoothHostInfo encapsula os detalhes de um dispositivo local QBluetooth. Mais...
| Cabeçalho: | #include <QBluetoothHostInfo> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Bluetooth) target_link_libraries(mytarget PRIVATE Qt6::Bluetooth) |
| qmake: | QT += bluetooth |
Funções 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) |
Não-membros relacionados
| bool | operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
| bool | operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
Documentação das funções de membro
QBluetoothHostInfo::QBluetoothHostInfo()
Cria um objeto `QBluetoothHostInfo` nulo.
QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)
Cria um novo objeto `QBluetoothHostInfo`, que é uma cópia de ` other`.
[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()
Destrói o “ QBluetoothHostInfo ”.
QBluetoothAddress QBluetoothHostInfo::address() const
Retorna o endereço Bluetooth como um objeto ` QBluetoothAddress`.
Veja também setAddress().
QString QBluetoothHostInfo::name() const
Retorna o nome visível ao usuário do objeto de informações do host.
Veja também setName().
void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)
Define o parâmetro Bluetooth “ address ” para este objeto de informações do host Bluetooth.
Veja também address().
void QBluetoothHostInfo::setName(const QString &name)
Define o parâmetro ` name ` do objeto de informações do host.
Veja também name().
QBluetoothHostInfo &QBluetoothHostInfo::operator=(const QBluetoothHostInfo &other)
Atribui o other a esta instância do QBluetoothHostInfo.
Não-membros relacionados
bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Retorna ` true ` se ` a ` e ` b ` não forem iguais; caso contrário, retorna ` false`.
bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Retorna ` true ` se ` a ` e ` b ` forem iguais; caso contrário, retorna ` 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.