QBluetoothHostInfo Class
La classe `QBluetoothHostInfo` encapsule les informations relatives à un périphérique local de type « QBluetooth ». En savoir plus...
| En-tête : | #include <QBluetoothHostInfo> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Bluetooth) target_link_libraries(mytarget PRIVATE Qt6::Bluetooth) |
| qmake : | QT += bluetooth |
Fonctions publiques
| 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) |
Éléments non membres associés
| bool | operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
| bool | operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
Documentation sur les fonctions membres
QBluetoothHostInfo::QBluetoothHostInfo()
Crée un objet `QBluetoothHostInfo` de type null.
QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)
Crée un nouvel objet `QBluetoothHostInfo` qui est une copie de ` other`.
[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()
Supprime l'QBluetoothHostInfo.
QBluetoothAddress QBluetoothHostInfo::address() const
Renvoie l'adresse Bluetooth sous la forme d'un objet ` QBluetoothAddress`.
Voir aussi setAddress().
QString QBluetoothHostInfo::name() const
Renvoie le nom visible par l'utilisateur de l'objet d'informations sur l'hôte.
Voir aussi setName().
void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)
Définit l'address Bluetooth pour cet objet d'informations sur l'hôte Bluetooth.
Voir aussi address().
void QBluetoothHostInfo::setName(const QString &name)
Définit l'name de l'objet d'informations sur l'hôte.
Voir aussi name().
QBluetoothHostInfo &QBluetoothHostInfo::operator=(const QBluetoothHostInfo &other)
Attribue « other » à cette instance « QBluetoothHostInfo ».
Personnes associées non membres
bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Renvoie « true » si « a » et « b » ne sont pas égaux ; sinon, renvoie « false ».
bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Renvoie « true » si « a » et « b » sont égaux, sinon « 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.