class QPlaceSupplier

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

Synopsis

Properties

  • iconᅟ - The icon of the supplier

  • nameᅟ - The name of the supplier which can be displayed to the user

  • supplierIdᅟ - The identifier of the supplier

  • urlᅟ - The URL of the supplier’s website

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

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.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property iconᅟ: QPlaceIcon

This property holds the icon of the supplier..

Access functions:
property nameᅟ: str

This property holds 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.

Access functions:
property supplierIdᅟ: str

This property holds 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.

Access functions:
property urlᅟ: QUrl

This property holds the URL of the supplier’s website..

Access functions:
__init__()

Constructs a new supplier object.

__init__(other)
Parameters:

otherQPlaceSupplier

Constructs a copy of other.

icon()
Return type:

QPlaceIcon

See also

setIcon()

Getter of property iconᅟ .

isEmpty()
Return type:

bool

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

name()
Return type:

str

See also

setName()

Getter of property nameᅟ .

__ne__(rhs)
Parameters:

rhsQPlaceSupplier

Return type:

bool

Returns true if lhs is not equal to rhs, otherwise returns false.

__eq__(rhs)
Parameters:

rhsQPlaceSupplier

Return type:

bool

Returns true if lhs is equal to rhs, otherwise returns false.

setIcon(icon)
Parameters:

iconQPlaceIcon

Sets the icon of the supplier.

See also

icon()

Setter of property iconᅟ .

setName(data)
Parameters:

data – str

Sets the name of the supplier.

See also

name()

Setter of property nameᅟ .

setSupplierId(identifier)
Parameters:

identifier – str

Sets the identifier of the supplier.

See also

supplierId()

Setter of property supplierIdᅟ .

setUrl(data)
Parameters:

dataQUrl

Sets the url of the supplier’s website.

See also

url()

Setter of property urlᅟ .

supplierId()
Return type:

str

See also

setSupplierId()

Getter of property supplierIdᅟ .

swap(other)
Parameters:

otherQPlaceSupplier

url()
Return type:

QUrl

See also

setUrl()

Getter of property urlᅟ .