이 페이지에서

QBluetoothAddress Class

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

헤더: #include <QBluetoothAddress>
CMake: find_package(Qt6 REQUIRED COMPONENTS Bluetooth)
target_link_libraries(mytarget PRIVATE Qt6::Bluetooth)
qmake: QT += bluetooth

공개 함수

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

null Bluetooth 주소를 생성합니다.

[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 을 할당합니다.

[constexpr noexcept default] QBluetoothAddress::QBluetoothAddress(QBluetoothAddress &&)

QBluetoothAddress 의 인스턴스를 생성합니다.

[noexcept] void QBluetoothAddress::clear()

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

[noexcept] bool QBluetoothAddress::isNull() const

블루투스 주소가 null인 경우 true를 반환하고, 그렇지 않은 경우 false를 반환합니다.

QString QBluetoothAddress::toString() const

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

[noexcept] quint64 QBluetoothAddress::toUInt64() const

이 블루투스 주소를 quint64 형식으로 반환합니다.

[noexcept default] QBluetoothAddress &QBluetoothAddress::operator=(QBluetoothAddress &&)

other 를 이 QBluetoothAddress 인스턴스에 이동-할당합니다.

관련 비회원

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

` key`에 대한 해시 값을 반환하며, 계산의 시드 값으로 ` seed `를 사용합니다.

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

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

두 블루투스 주소 a 와 b 가 서로 다를 경우 true 를 반환하고, 그렇지 않은 경우 false 를 반환합니다.

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

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

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

두 블루투스 주소 a 와 b 가 같으면 true 를 반환하고, 그렇지 않으면 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.