BluetoothDeviceDiscoveryAgent
Qt Base Class: QBluetoothDeviceDiscoveryAgent
Signature: QBluetoothDeviceDiscoveryAgent(self, deviceAdapter: PySide6.QtBluetooth.QBluetoothAddress, parent: Optional[PySide6.QtCore.QObject] = None) -> None
QBluetoothDeviceDiscoveryAgent(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None
Base classes
Name | Children | Inherits |
---|---|---|
ObjectMixin prettyqt.core.object |
||
QBluetoothDeviceDiscoveryAgent PySide6.QtBluetooth QBluetoothDeviceDiscoveryAgent(self, deviceAdapter: PySide6.QtBluetooth.QBluetoothAddress, parent: Optional[PySide6.QtCore.QObject] \= None) -> None |
⋔ Inheritance diagram
graph TD
1473367567808["bluetooth.BluetoothDeviceDiscoveryAgent"]
1473299815024["core.ObjectMixin"]
140713234304496["builtins.object"]
1473367259984["QtBluetooth.QBluetoothDeviceDiscoveryAgent"]
1473288842240["QtCore.QObject"]
1473291690208["Shiboken.Object"]
1473299815024 --> 1473367567808
140713234304496 --> 1473299815024
1473367259984 --> 1473367567808
1473288842240 --> 1473367259984
1473291690208 --> 1473288842240
140713234304496 --> 1473291690208
🛈 DocStrings
Bases: ObjectMixin
, QBluetoothDeviceDiscoveryAgent
Discovers the Bluetooth devices nearby.
Source code in prettyqt\bluetooth\bluetoothdevicediscoveryagent.py
get_error() -> ErrorStr
get_supported_discovery_methods() -> list[DiscoveryMethodStr]
Return a list of supported discovery methods.
start_discovery(classic: bool = True, low_energy: bool = True)
Start discovery of bluetooth devices.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
classic |
bool
|
use classic method |
True
|
low_energy |
bool
|
use BLE mode |
True
|
Source code in prettyqt\bluetooth\bluetoothdevicediscoveryagent.py
⌗ Property table
Qt Property | Type | Doc |
---|---|---|
objectName |
QString |