Obsolete Members for QLowEnergyController

以下成員源於類 QLowEnergyController 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。

公共函數

(obsolete) QLowEnergyController (const QBluetoothAddress & remoteDevice , QObject * parent = nullptr)
(obsolete) QLowEnergyController (const QBluetoothDeviceInfo & remoteDeviceInfo , QObject * parent = nullptr)
(obsolete) QLowEnergyController (const QBluetoothAddress & remoteDevice , const QBluetoothAddress & localDevice , QObject * parent = nullptr)
(obsolete) dumpObjectInfo ()
(obsolete) dumpObjectTree ()

成員函數文檔編製

QLowEnergyController:: QLowEnergyController (const QBluetoothAddress & remoteDevice , QObject * parent = nullptr)

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new instance of this class with parent .

The remoteDevice must contain the address of the remote Bluetooth Low Energy device to which this object should attempt to connect later on.

The controller uses the local default Bluetooth adapter for the connection management.

QLowEnergyController:: QLowEnergyController (const QBluetoothDeviceInfo & remoteDeviceInfo , QObject * parent = nullptr)

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new instance of this class with parent .

The remoteDeviceInfo must contain the details of the remote Bluetooth Low Energy device to which this object should attempt to connect later on.

The controller uses the local default Bluetooth adapter for the connection management.

該函數在 Qt 5.5 引入。

QLowEnergyController:: QLowEnergyController (const QBluetoothAddress & remoteDevice , const QBluetoothAddress & localDevice , QObject * parent = nullptr)

此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

Constructs a new instance of this class with parent .

The remoteDevice must contain the address of the remote Bluetooth Low Energy device to which this object should attempt to connect later on.

The connection is established via localDevice 。若 localDevice is invalid, the local default device is automatically selected. If localDevice specifies a local device that is not a local Bluetooth adapter, error () 被設為 InvalidBluetoothAdapterError once connectToDevice () 被調用。