QBluetoothAddress Class

QBluetoothAddress 클래스는 블루투스 장치에 주소를 할당합니다. 더 보기...

Header: #include <QBluetoothAddress>
qmake: QT += bluetooth

공용 함수

QBluetoothAddress()
QBluetoothAddress(const QString &address)
QBluetoothAddress(quint64 address)
void clear()
bool isNull() const
QString toString() const
quint64 toUInt64() const
(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)

상세 설명

이 클래스는 플랫폼과 프로토콜에 독립적인 방식으로 블루투스 주소를 보유합니다.

멤버 함수 문서

[constexpr noexcept] QBluetoothAddress::QBluetoothAddress()

널 블루투스 주소를 생성합니다.

[explicit] QBluetoothAddress::QBluetoothAddress(const QString &address)

새 블루투스 주소를 생성하고 address 주소를 할당합니다.

address 의 형식은 XX:XX:XX:XX:XX:XX 또는 XXXXXXXXXXXX(여기서 X는 16진수)일 수 있습니다. 대소문자는 중요하지 않습니다.

[explicit constexpr noexcept] QBluetoothAddress::QBluetoothAddress(quint64 address)

새 블루투스 주소를 만들고 address 주소를 할당합니다.

[noexcept] void QBluetoothAddress::clear()

블루투스 주소를 00:00:00:00:00:00:00으로 설정합니다.

[noexcept] bool QBluetoothAddress::isNull() const

블루투스 주소가 null이면 true를 반환하고, 그렇지 않으면 false를 반환합니다.

QString QBluetoothAddress::toString() const

블루투스 주소를 XX:XX:XX:XX:XX:XX:XX 형식의 문자열로 반환합니다.

[noexcept] quint64 QBluetoothAddress::toUInt64() const

이 블루투스 주소를 퀸트64로 반환합니다.

관련 비회원

[noexcept, since 6.6] size_t qHash(const QBluetoothAddress &key, size_t seed = 0)

seed 을 사용하여 계산을 시드하는 key 에 대한 해시값을 반환합니다.

이 함수는 Qt 6.6에 도입되었습니다.

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

두 블루투스 주소 ab 가 같지 않으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

bool operator<(const QBluetoothAddress &a, const QBluetoothAddress &b)

블루투스 주소 ab 보다 작으면 참을 반환하고, 그렇지 않으면 거짓을 반환합니다.

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

두 블루투스 주소 ab 가 같으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

© 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.