Skip to content

BluetoothAddress

Qt Base Class: QBluetoothAddress

Signature: QBluetoothAddress(self) -> None QBluetoothAddress(self, address: str) -> None QBluetoothAddress(self, address: int) -> None QBluetoothAddress(self, other: PySide6.QtBluetooth.QBluetoothAddress) -> None

Base classes

Name Children Inherits
QBluetoothAddress
PySide6.QtBluetooth
QBluetoothAddress(self) -> None

⋔ Inheritance diagram

graph TD
  1473367550240["bluetooth.BluetoothAddress"]
  1473367536576["QtBluetooth.QBluetoothAddress"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473367536576 --> 1473367550240
  1473291690208 --> 1473367536576
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QBluetoothAddress

Assigns an address to the Bluetooth device.

Source code in prettyqt\bluetooth\bluetoothaddress.py
class BluetoothAddress(QtBluetooth.QBluetoothAddress):
    """Assigns an address to the Bluetooth device."""

    def __repr__(self):
        return get_repr(self, self.toString())

    def __str__(self):
        return self.toString()

    def __bool__(self):
        """True when address is not null."""
        return not self.isNull()

__bool__()

True when address is not null.

Source code in prettyqt\bluetooth\bluetoothaddress.py
def __bool__(self):
    """True when address is not null."""
    return not self.isNull()