QBluetoothAddress#

The QBluetoothAddress class assigns an address to the Bluetooth device. More

Inheritance diagram of PySide6.QtBluetooth.QBluetoothAddress

Synopsis#

Functions#

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.

class PySide6.QtBluetooth.QBluetoothAddress#

PySide6.QtBluetooth.QBluetoothAddress(other)

PySide6.QtBluetooth.QBluetoothAddress(address)

PySide6.QtBluetooth.QBluetoothAddress(address)

Parameters:

Constructs an null Bluetooth Address.

Constructs a new Bluetooth address which is a copy of other.

Constructs a new Bluetooth address and assigns address to it.

The format of address can be either XX:XX:XX:XX:XX:XX or XXXXXXXXXXXX, where X is a hexadecimal digit. Case is not important.

Constructs a new Bluetooth address and assigns address to it.

PySide6.QtBluetooth.QBluetoothAddress.clear()#

Sets the Bluetooth address to 00:00:00:00:00:00.

PySide6.QtBluetooth.QBluetoothAddress.isNull()#
Return type:

bool

Returns true if the Bluetooth address is null, otherwise returns false.

PySide6.QtBluetooth.QBluetoothAddress.__ne__(b)#
Parameters:

bPySide6.QtBluetooth.QBluetoothAddress

Return type:

bool

Returns true if the two Bluetooth addresses a and b are not equal, otherwise returns false.

PySide6.QtBluetooth.QBluetoothAddress.__lt__(b)#
Parameters:

bPySide6.QtBluetooth.QBluetoothAddress

Return type:

bool

Returns true if the Bluetooth address a is less than b, otherwise returns false.

PySide6.QtBluetooth.QBluetoothAddress.__eq__(b)#
Parameters:

bPySide6.QtBluetooth.QBluetoothAddress

Return type:

bool

Returns true if the two Bluetooth addresses a and b are equal, otherwise returns false.

PySide6.QtBluetooth.QBluetoothAddress.toString()#
Return type:

str

Returns the Bluetooth address as a string of the form, XX:XX:XX:XX:XX:XX.

PySide6.QtBluetooth.QBluetoothAddress.toUInt64()#
Return type:

int

Returns this Bluetooth address as a quint64.