このページでは

QBluetoothHostInfo Class

QBluetoothHostInfo クラスは、ローカルのQBluetooth デバイスの詳細をカプセル化しています。詳細...

ヘッダー: #include <QBluetoothHostInfo>
CMake: find_package(Qt6 REQUIRED COMPONENTS Bluetooth)
target_link_libraries(mytarget PRIVATE Qt6::Bluetooth)
qmake: QT += bluetooth

パブリック関数

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)

詳細な説明

このクラスは、ローカルのBluetoothデバイスの名前とアドレスを保持します。

メンバ関数のドキュメント

QBluetoothHostInfo::QBluetoothHostInfo()

null の QBluetoothHostInfo オブジェクトを生成します。

QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)

other のコピーである新しい QBluetoothHostInfo を作成します。

[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()

QBluetoothHostInfo を削除します。

QBluetoothAddress QBluetoothHostInfo::address() const

BluetoothアドレスをQBluetoothAddress として返します。

setAddress()も参照してください 。

QString QBluetoothHostInfo::name() const

ホスト情報オブジェクトのユーザーに表示される名前を返します。

setName()も参照してください 。

void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)

このBluetoothホスト情報オブジェクトのBluetoothaddress を設定します。

address()も参照してください 。

void QBluetoothHostInfo::setName(const QString &name)

ホスト情報オブジェクトのname を設定します。

name()も参照してください 。

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

このQBluetoothHostInfo インスタンスにother を割り当てます。

関連する非メンバー

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

a とb が等しくない場合は `true ` を返し、等しい場合は `false` を返します。

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