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 QPlaceSupplier

QPlaceSupplier(other)

param other

QPlaceSupplier

Constructs a new supplier object.

Constructs a copy of other .

PySide2.QtLocation.QPlaceSupplier.icon()
Return type

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

unicode

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

otherQPlaceSupplier

Return type

bool

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

PySide2.QtLocation.QPlaceSupplier.__eq__(other)
Parameters

otherQPlaceSupplier

Return type

bool

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

PySide2.QtLocation.QPlaceSupplier.setIcon(icon)
Parameters

iconQPlaceIcon

Sets the icon of the supplier.

See also

icon()

PySide2.QtLocation.QPlaceSupplier.setName(data)
Parameters

data – unicode

Sets the name of the supplier.

See also

name()

PySide2.QtLocation.QPlaceSupplier.setSupplierId(identifier)
Parameters

identifier – unicode

Sets the identifier of the supplier.

See also

supplierId()

PySide2.QtLocation.QPlaceSupplier.setUrl(data)
Parameters

dataQUrl

Sets the url of the supplier’s website.

See also

url()

PySide2.QtLocation.QPlaceSupplier.supplierId()
Return type

unicode

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

QUrl

Returns the URL of the supplier’s website.

See also

setUrl()