PySide6.QtBluetooth.QBluetoothHostInfo¶
- class QBluetoothHostInfo¶
The
QBluetoothHostInfo
class encapsulates the details of a local QBluetooth device. More…Synopsis¶
Methods¶
def
__init__()
def
address()
def
name()
def
__ne__()
def
__eq__()
def
setAddress()
def
setName()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
This class holds the name and address of a local Bluetooth device.
- __init__()¶
Constructs a null
QBluetoothHostInfo
object.- __init__(other)
- Parameters:
other –
QBluetoothHostInfo
Constructs a new
QBluetoothHostInfo
which is a copy ofother
.- address()¶
- Return type:
Returns the Bluetooth address as a
QBluetoothAddress
.See also
- name()¶
- Return type:
str
Returns the user visible name of the host info object.
See also
- __ne__(b)¶
- Parameters:
- Return type:
bool
Returns
true
ifa
andb
are not equal, otherwisefalse
.- __eq__(b)¶
- Parameters:
- Return type:
bool
Returns
true
ifa
andb
are equal, otherwisefalse
.- setAddress(address)¶
- Parameters:
address –
QBluetoothAddress
Sets the Bluetooth
address
for this Bluetooth host info object.See also
- setName(name)¶
- Parameters:
name – str
Sets the
name
of the host info object.See also