In questa pagina

QBluetoothHostInfo Class

La classe QBluetoothHostInfo incapsula le informazioni relative a un dispositivo locale QBluetooth. Per saperne di più...

Intestazione: #include <QBluetoothHostInfo>
CMake: find_package(Qt6 REQUIRED COMPONENTS Bluetooth)
target_link_libraries(mytarget PRIVATE Qt6::Bluetooth)
qmake: QT += bluetooth

Funzioni pubbliche

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)
bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)

Descrizione dettagliata

Questa classe contiene il nome e l'indirizzo di un dispositivo Bluetooth locale.

Documentazione delle funzioni membro

QBluetoothHostInfo::QBluetoothHostInfo()

Crea un oggetto QBluetoothHostInfo con valori nulli.

QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)

Crea un nuovo oggetto QBluetoothHostInfo che è una copia di other.

[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()

Distrugge l'QBluetoothHostInfo.

QBluetoothAddress QBluetoothHostInfo::address() const

Restituisce l'indirizzo Bluetooth come oggetto di tipo ` QBluetoothAddress`.

Vedi anche setAddress().

QString QBluetoothHostInfo::name() const

Restituisce il nome visibile all'utente dell'oggetto "informazioni sull'host".

Vedi anche setName().

void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)

Imposta l'address e Bluetooth per questo oggetto informativo dell'host Bluetooth.

Vedi anche address().

void QBluetoothHostInfo::setName(const QString &name)

Imposta il campo “ name ” dell’oggetto con le informazioni sull’host.

Vedi anche name().

QBluetoothHostInfo &QBluetoothHostInfo::operator=(const QBluetoothHostInfo &other)

Assegna other a questa istanza di QBluetoothHostInfo.

Non membri correlati

bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)

Restituisce “ true ” se “ a ” e “ b ” non sono uguali; in caso contrario, restituisce “ false ”.

bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)

Restituisce ` true ` se ` a ` e ` b ` sono uguali, altrimenti ` 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.