QPlaceSupplier

The QPlaceSupplier class represents a supplier of a place or content associated with a place. More

Inheritance diagram of PySide2.QtLocation.QPlaceSupplier

Synopsis

Functions

Detailed Description

Each instance represents a set of data about a supplier, which can include supplier’s name, url and icon. The supplier is typically a business or organization.

Note: The Places API only supports suppliers as ‘retrieve-only’ objects. Submitting suppliers to a provider is not a supported use case.

class PySide2.QtLocation.QPlaceSupplier

PySide2.QtLocation.QPlaceSupplier(other)

param other:

PySide2.QtLocation.QPlaceSupplier

Constructs a new supplier object.

Constructs a copy of other .

PySide2.QtLocation.QPlaceSupplier.icon()
Return type:

PySide2.QtLocation.QPlaceIcon

Returns the icon of the supplier.

See also

setIcon()

PySide2.QtLocation.QPlaceSupplier.isEmpty()
Return type:

bool

Returns true if all fields of the place supplier are 0; otherwise returns false.

PySide2.QtLocation.QPlaceSupplier.name()
Return type:

str

Returns the name of the supplier which can be displayed to the user.

The name can potentially be localized. The language is dependent on the entity that sets it, typically this is the QPlaceManager . The locales() field defines what language is used.

See also

setName()

PySide2.QtLocation.QPlaceSupplier.__ne__(other)
Parameters:

otherPySide2.QtLocation.QPlaceSupplier

Return type:

bool

Returns true if this supplier is not equal to other , otherwise returns false.

PySide2.QtLocation.QPlaceSupplier.__eq__(other)
Parameters:

otherPySide2.QtLocation.QPlaceSupplier

Return type:

bool

Returns true if this supplier is equal to other , otherwise returns false.

PySide2.QtLocation.QPlaceSupplier.setIcon(icon)
Parameters:

iconPySide2.QtLocation.QPlaceIcon

Sets the icon of the supplier.

See also

icon()

PySide2.QtLocation.QPlaceSupplier.setName(data)
Parameters:

data – str

Sets the name of the supplier.

See also

name()

PySide2.QtLocation.QPlaceSupplier.setSupplierId(identifier)
Parameters:

identifier – str

Sets the identifier of the supplier.

See also

supplierId()

PySide2.QtLocation.QPlaceSupplier.setUrl(data)
Parameters:

dataPySide2.QtCore.QUrl

Sets the url of the supplier’s website.

See also

url()

PySide2.QtLocation.QPlaceSupplier.supplierId()
Return type:

str

Returns the identifier of the supplier. The identifier is unique to the manager backend which provided the supplier and is generally not suitable for displaying to the user.

See also

setSupplierId()

PySide2.QtLocation.QPlaceSupplier.url()
Return type:

PySide2.QtCore.QUrl

Returns the URL of the supplier’s website.

See also

setUrl()