PySide6.QtBluetooth.QBluetoothAddress¶
- class QBluetoothAddress¶
- The - QBluetoothAddressclass assigns an address to the Bluetooth device. More…- Synopsis¶- Methods¶- def - __init__()
- def - clear()
- def - isNull()
- def - __ne__()
- def - __lt__()
- def - __eq__()
- def - toString()
- def - toUInt64()
 - 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 a Bluetooth address in a platform- and protocol-independent manner. - __init__()¶
 - Constructs a null Bluetooth Address. - __init__(other)
- Parameters:
- other – - QBluetoothAddress
 
 - __init__(address)
- Parameters:
- address – str 
 
 - Constructs a new Bluetooth address and assigns - addressto it.- The format of - addresscan be either XX:XX:XX:XX:XX:XX or XXXXXXXXXXXX, where X is a hexadecimal digit. Case is not important.- __init__(address)
- Parameters:
- address – int 
 
 - Constructs a new Bluetooth address and assigns - addressto it.- clear()¶
 - Sets the Bluetooth address to 00:00:00:00:00:00. - isNull()¶
- Return type:
- bool 
 
 - Returns true if the Bluetooth address is null, otherwise returns false. - __ne__(b)¶
- Parameters:
- Return type:
- bool 
 
 - Returns - trueif the two Bluetooth addresses- aand- bare not equal, otherwise returns- false.- __lt__(b)¶
- Parameters:
- Return type:
- bool 
 
 - Returns true if the Bluetooth address - ais less than- b, otherwise returns false.- __eq__(b)¶
- Parameters:
- Return type:
- bool 
 
 - Returns - trueif the two Bluetooth addresses- aand- bare equal, otherwise returns- false.- toString()¶
- Return type:
- str 
 
 - Returns the Bluetooth address as a string of the form, XX:XX:XX:XX:XX:XX. - toUInt64()¶
- Return type:
- int 
 
 - Returns this Bluetooth address as a quint64.