QBluetoothHostInfo#

The QBluetoothHostInfo class encapsulates the details of a local QBluetooth device. More

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 the name and address of a local Bluetooth device.

class PySide6.QtBluetooth.QBluetoothHostInfo#

PySide6.QtBluetooth.QBluetoothHostInfo(other)

Parameters:

otherPySide6.QtBluetooth.QBluetoothHostInfo

Constructs a null QBluetoothHostInfo object.

Constructs a new QBluetoothHostInfo which is a copy of other.

PySide6.QtBluetooth.QBluetoothHostInfo.address()#
Return type:

PySide6.QtBluetooth.QBluetoothAddress

Returns the Bluetooth address as a QBluetoothAddress .

See also

setAddress()

PySide6.QtBluetooth.QBluetoothHostInfo.name()#
Return type:

str

Returns the user visible name of the host info object.

See also

setName()

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

bPySide6.QtBluetooth.QBluetoothHostInfo

Return type:

bool

Returns true if a and b are not equal, otherwise false.

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

bPySide6.QtBluetooth.QBluetoothHostInfo

Return type:

bool

Returns true if a and b are equal, otherwise false.

PySide6.QtBluetooth.QBluetoothHostInfo.setAddress(address)#
Parameters:

addressPySide6.QtBluetooth.QBluetoothAddress

Sets the Bluetooth address for this Bluetooth host info object.

See also

address()

PySide6.QtBluetooth.QBluetoothHostInfo.setName(name)#
Parameters:

name – str

Sets the name of the host info object.

See also

name()