PySide6.QtBluetooth.QBluetoothHostInfo¶
- class QBluetoothHostInfo¶
The
QBluetoothHostInfoclass encapsulates the details of a local QBluetooth device.Details
This class holds the name and address of a local Bluetooth device.
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
- __init__()¶
Constructs a null
QBluetoothHostInfoobject.- __init__(other)
- Parameters:
other –
QBluetoothHostInfo
Constructs a new
QBluetoothHostInfowhich 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
trueifaandbare not equal, otherwisefalse.- __eq__(b)¶
- Parameters:
- Return type:
bool
Returns
trueifaandbare equal, otherwisefalse.- setAddress(address)¶
- Parameters:
address –
QBluetoothAddress
Sets the Bluetooth
addressfor this Bluetooth host info object.See also
- setName(name)¶
- Parameters:
name – str
Sets the
nameof the host info object.See also