QBluetoothHostInfo 类
QBluetoothHostInfo 类封装了本地 QBluetooth 设备的详细信息。 更多...
| 头文件 | #include <QBluetoothHostInfo> | 
| 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) | 
成员函数文档
QBluetoothHostInfo::QBluetoothHostInfo()
构造一个空的 QBluetoothHostInfo 对象。
QBluetoothHostInfo::QBluetoothHostInfo(const QBluetoothHostInfo &other)
构造一个新 QBluetoothHostInfo,它是 other 的副本。
[noexcept] QBluetoothHostInfo::~QBluetoothHostInfo()
销毁 QBluetoothHostInfo。
QBluetoothAddress QBluetoothHostInfo::address() const
返回蓝牙地址作为 QBluetoothAddress。
另请参阅setAddress()。
QString QBluetoothHostInfo::name() const
返回主机信息对象的用户可见名称。
另请参阅setName()。
void QBluetoothHostInfo::setAddress(const QBluetoothAddress &address)
设置此蓝牙主机信息对象的蓝牙地址。
另请参阅address().
void QBluetoothHostInfo::setName(const QString &name)
设置主机信息对象的名称。
另请参阅name().
QBluetoothHostInfo &QBluetoothHostInfo::operator=(const QBluetoothHostInfo &other)
将other赋值给此QBluetoothHostInfo实例。
相关非成员函数
bool operator!=(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
如果a和b不相等,则返回true,否则返回false。
bool operator==(const QBluetoothHostInfo &a, const QBluetoothHostInfo &b)
如果a和b相等,则返回true,否则返回false。
© 2024 Qt公司。本文件中的文档贡献由其各自的所有者拥有版权。本文件中的文档是根据自由软件基金会发布的GNU自由文档许可证版本1.3许可的。Qt及其相关标志是芬兰和/或其他国家的Qt公司的商标。所有其他商标均为其各自所有者的财产。