- 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 suppliernameᅟ
- The name of the supplier which can be displayed to the usersupplierIdᅟ
- The identifier of the supplierurlᅟ
- The URL of the supplier’s website
Methods¶
def
__init__()
def
icon()
def
isEmpty()
def
name()
def
__ne__()
def
__eq__()
def
setIcon()
def
setName()
def
setSupplierId()
def
setUrl()
def
supplierId()
def
swap()
def
url()
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..
- 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
. Thelocales()
field defines what language is used.- 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:
This property holds the URL of the supplier’s website..
- __init__()¶
Constructs a new supplier object.
- __init__(other)
- Parameters:
other –
QPlaceSupplier
Constructs a copy of
other
.- icon()¶
- Return type:
See also
Getter of property
iconᅟ
.- isEmpty()¶
- Return type:
bool
Returns true if all fields of the place supplier are 0; otherwise returns false.
Getter of property
nameᅟ
.- __ne__(rhs)¶
- Parameters:
rhs –
QPlaceSupplier
- Return type:
bool
Returns true if
lhs
is not equal torhs
, otherwise returns false.- __eq__(rhs)¶
- Parameters:
rhs –
QPlaceSupplier
- Return type:
bool
Returns true if
lhs
is equal torhs
, otherwise returns false.- setIcon(icon)¶
- Parameters:
icon –
QPlaceIcon
Sets the
icon
of the supplier.See also
Setter of property
iconᅟ
.- setName(data)¶
- Parameters:
data – str
Sets the
name
of the supplier.See also
Setter of property
nameᅟ
.- setSupplierId(identifier)¶
- Parameters:
identifier – str
Sets the
identifier
of the supplier.See also
Setter of property
supplierIdᅟ
.Sets the
url
of the supplier’s website.See also
Setter of property
urlᅟ
.- supplierId()¶
- Return type:
str
See also
Getter of property
supplierIdᅟ
.- swap(other)¶
- Parameters:
other –
QPlaceSupplier
Getter of property
urlᅟ
.