QBluetoothHostInfo Class
Die Klasse „QBluetoothHostInfo“ kapselt die Details eines lokalen „ QBluetooth “-Geräts. Mehr...
| Header: | #include <QBluetoothHostInfo> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Bluetooth) target_link_libraries(mytarget PRIVATE Qt6::Bluetooth) |
| qmake: | QT += bluetooth |
Öffentliche Funktionen
| 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) |
Verwandte Nicht-Mitglieder
| bool | operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
| bool | operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b) |
Ausführliche Beschreibung
Diese Klasse enthält den Namen und die Adresse eines lokalen Bluetooth-Geräts.
Dokumentation der Mitgliedsfunktionen
QBluetoothHostInfo::QBluetoothHostInfo()
Erstellt ein Null-Objekt vom Typ „QBluetoothHostInfo“.
QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)
Erstellt ein neues `QBluetoothHostInfo`-Objekt, das eine Kopie von ` other` ist.
[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()
Zerstört die „ QBluetoothHostInfo “.
QBluetoothAddress QBluetoothHostInfo::address() const
Gibt die Bluetooth-Adresse als „ QBluetoothAddress “ zurück.
Siehe auch setAddress().
QString QBluetoothHostInfo::name() const
Gibt den für den Benutzer sichtbaren Namen des Host-Info-Objekts zurück.
Siehe auch „ setName()“.
void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)
Legt die Bluetooth- address en für dieses Bluetooth-Host-Info-Objekt fest.
Siehe auch ` address()`.
void QBluetoothHostInfo::setName(const QString &name)
Legt die Eigenschaft „ name “ des Host-Info-Objekts fest.
Siehe auch ` name()`.
QBluetoothHostInfo &QBluetoothHostInfo::operator=(const QBluetoothHostInfo &other)
Weist dieser „ QBluetoothHostInfo “-Instanz „ other “ zu.
Zugehörige Nicht-Mitglieder
bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Gibt „ true “ zurück, wenn „ a “ und „ b “ nicht gleich sind, andernfalls „ false “.
bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
Gibt „ true “ zurück, wenn „ a “ und „ b “ gleich sind, andernfalls „ 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.