class QBluetoothHostInfo#

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

Synopsis#

Methods#

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.

__init__()#

Constructs a null QBluetoothHostInfo object.

__init__(other)
Parameters:

otherQBluetoothHostInfo

Constructs a new QBluetoothHostInfo which is a copy of other.

address()#
Return type:

QBluetoothAddress

Returns the Bluetooth address as a QBluetoothAddress .

See also

setAddress()

name()#
Return type:

str

Returns the user visible name of the host info object.

See also

setName()

__ne__(b)#
Parameters:

bQBluetoothHostInfo

Return type:

bool

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

__eq__(b)#
Parameters:

bQBluetoothHostInfo

Return type:

bool

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

setAddress(address)#
Parameters:

addressQBluetoothAddress

Sets the Bluetooth address for this Bluetooth host info object.

See also

address()

setName(name)#
Parameters:

name – str

Sets the name of the host info object.

See also

name()