QBluetoothAddress Class
Die Klasse QBluetoothAddress weist dem Bluetooth-Gerät eine Adresse zu. Mehr...
Header: | #include <QBluetoothAddress> |
qmake: | QT += bluetooth |
Öffentliche Funktionen
QBluetoothAddress() | |
QBluetoothAddress(const QString &address) | |
QBluetoothAddress(quint64 address) | |
void | clear() |
bool | isNull() const |
QString | toString() const |
quint64 | toUInt64() const |
Verwandte Nicht-Mitglieder
(since 6.6) size_t | qHash(const QBluetoothAddress &key, size_t seed = 0) |
bool | operator!=(const QBluetoothAddress &a, const QBluetoothAddress &b) |
bool | operator<(const QBluetoothAddress &a, const QBluetoothAddress &b) |
bool | operator==(const QBluetoothAddress &a, const QBluetoothAddress &b) |
Detaillierte Beschreibung
Diese Klasse enthält eine Bluetooth-Adresse in einer plattform- und protokollunabhängigen Weise.
Dokumentation der Mitgliedsfunktionen
[constexpr noexcept]
QBluetoothAddress::QBluetoothAddress()
Konstruiert eine Null-Bluetooth-Adresse.
[explicit]
QBluetoothAddress::QBluetoothAddress(const QString &address)
Konstruiert eine neue Bluetooth-Adresse und weist ihr address zu.
Das Format von address kann entweder XX:XX:XX:XX:XX:XX oder XXXXXXXXXXXX sein, wobei X eine hexadezimale Ziffer ist. Die Groß-/Kleinschreibung ist nicht wichtig.
[explicit constexpr noexcept]
QBluetoothAddress::QBluetoothAddress(quint64 address)
Konstruiert eine neue Bluetooth-Adresse und weist ihr address zu.
[noexcept]
void QBluetoothAddress::clear()
Setzt die Bluetooth-Adresse auf 00:00:00:00:00:00.
[noexcept]
bool QBluetoothAddress::isNull() const
Gibt true zurück, wenn die Bluetooth-Adresse null ist, andernfalls false.
QString QBluetoothAddress::toString() const
Gibt die Bluetooth-Adresse als Zeichenfolge der Form XX:XX:XX:XX:XX:XX:XX zurück.
[noexcept]
quint64 QBluetoothAddress::toUInt64() const
Gibt diese Bluetooth-Adresse als quint64 zurück.
Verwandte Nicht-Mitglieder
[noexcept, since 6.6]
size_t qHash(const QBluetoothAddress &key, size_t seed = 0)
Gibt den Hashwert für key zurück, wobei seed als Seed für die Berechnung verwendet wird.
Diese Funktion wurde in Qt 6.6 eingeführt.
bool operator!=(const QBluetoothAddress &a, const QBluetoothAddress &b)
Gibt true
zurück, wenn die beiden Bluetooth-Adressen a und b nicht gleich sind, ansonsten false
.
bool operator<(const QBluetoothAddress &a, const QBluetoothAddress &b)
Gibt true zurück, wenn die Bluetooth-Adresse a kleiner als b ist, andernfalls gibt sie false zurück.
bool operator==(const QBluetoothAddress &a, const QBluetoothAddress &b)
Gibt true
zurück, wenn die beiden Bluetooth-Adressen a und b gleich sind, andernfalls gibt es false
zurück.
© 2025 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.