BluetoothLocalDevice
Qt Base Class: QBluetoothLocalDevice
Signature: QBluetoothLocalDevice(self, address: PySide6.QtBluetooth.QBluetoothAddress, parent: Optional[PySide6.QtCore.QObject] = None) -> None
QBluetoothLocalDevice(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None
Base classes
Name | Children | Inherits |
---|---|---|
ObjectMixin prettyqt.core.object |
||
QBluetoothLocalDevice PySide6.QtBluetooth QBluetoothLocalDevice(self, address: PySide6.QtBluetooth.QBluetoothAddress, parent: Optional[PySide6.QtCore.QObject] \= None) -> None |
⋔ Inheritance diagram
graph TD
1473367547312["bluetooth.BluetoothLocalDevice"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473367237536["QtBluetooth.QBluetoothLocalDevice"]
1473288842240["QtCore.QObject"]
1473291690208["Shiboken.Object"]
1473299815024 --> 1473367547312
140713234304496 --> 1473299815024
1473367237536 --> 1473367547312
1473288842240 --> 1473367237536
1473291690208 --> 1473288842240
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: ObjectMixin
, QBluetoothLocalDevice
Enables access to the local Bluetooth device.
Source code in prettyqt\bluetooth\bluetoothlocaldevice.py
__bool__()
for_all_devices() -> list[bluetooth.BluetoothHostInfo]
classmethod
get_connected_devices() -> list[bluetooth.BluetoothAddress]
get_error() -> ErrorStr
get_host_mode() -> HostModeStr
get_pairing_status(address: bluetooth.QBluetoothAddress | int | str) -> PairingStr
Return pairing status.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
address |
QBluetoothAddress | int | str
|
bluetooth address |
required |
Source code in prettyqt\bluetooth\bluetoothlocaldevice.py
request_pairing(address: bluetooth.QBluetoothAddress | int | str, pairing: PairingStr | Pairing)
Request a pairing to given bluetooth address.
Source code in prettyqt\bluetooth\bluetoothlocaldevice.py
set_host_mode(mode: HostModeStr | HostMode)
Set host mode.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode |
HostModeStr | HostMode
|
host mode to use |
required |
⌗ Property table
Qt Property | Type | Doc |
---|---|---|
objectName |
QString |