Sur cette page

QBluetoothHostInfo Class

La classe QBluetoothHostInfo encapsule les détails d'un appareil local QBluetooth. Plus d'informations...

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

Description détaillée

Cette classe contient le nom et l'adresse d'un appareil Bluetooth local.

Documentation des fonctions membres

QBluetoothHostInfo::QBluetoothHostInfo()

Construit un objet QBluetoothHostInfo nul.

QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)

Construit un nouveau QBluetoothHostInfo qui est une copie de other.

[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()

Détruit le site QBluetoothHostInfo.

QBluetoothAddress QBluetoothHostInfo::address() const

Renvoie l'adresse Bluetooth sous forme de QBluetoothAddress.

Voir aussi setAddress().

QString QBluetoothHostInfo::name() const

Renvoie le nom visible par l'utilisateur de l'objet host info.

Voir aussi setName().

void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)

Définit l'adresse Bluetooth address pour cet objet d'information sur l'hôte Bluetooth.

Voir également address().

void QBluetoothHostInfo::setName(const QString &name)

Définit l'adresse name de l'objet host info.

Voir aussi name().

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

Attribue other à cette instance QBluetoothHostInfo.

Non-membres associés

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

Renvoie true si a et b ne sont pas égaux, sinon 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.