PySide6.QtBluetooth.QBluetoothHostInfo¶
- class QBluetoothHostInfo¶
- The - QBluetoothHostInfoclass 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 - QBluetoothHostInfoobject.- __init__(other)
- Parameters:
- other – - QBluetoothHostInfo
 
 - Constructs a new - QBluetoothHostInfowhich is a copy of- other.- 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 - trueif- aand- bare not equal, otherwise- false.- __eq__(b)¶
- Parameters:
- Return type:
- bool 
 
 - Returns - trueif- aand- bare equal, otherwise- false.- 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