QPlaceSupplierclass represents a supplier of a place or content associated with a place. 更多 …
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.
QPlaceSupplier
¶
QPlaceSupplier(other)
- param other
Constructs a new supplier object.
构造副本为
other
.
PySide2.QtLocation.QPlaceSupplier.
icon
(
)
¶
Returns the icon of the supplier.
另请参阅
PySide2.QtLocation.QPlaceSupplier.
isEmpty
(
)
¶
bool
Returns true if all fields of the place supplier are 0; otherwise returns false.
PySide2.QtLocation.QPlaceSupplier.
name
(
)
¶
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
。
locales()
field defines what language is used.
另请参阅
PySide2.QtLocation.QPlaceSupplier.
__ne__
(
other
)
¶
other
–
QPlaceSupplier
bool
Returns true if this supplier is not equal to
other
,否则返回 false。
PySide2.QtLocation.QPlaceSupplier.
__eq__
(
other
)
¶
other
–
QPlaceSupplier
bool
Returns true if this supplier is equal to
other
,否则返回 false。
PySide2.QtLocation.QPlaceSupplier.
setIcon
(
icon
)
¶
icon
–
QPlaceIcon
设置
icon
of the supplier.
另请参阅
PySide2.QtLocation.QPlaceSupplier.
setName
(
data
)
¶
data – unicode
设置
name
of the supplier.
另请参阅
PySide2.QtLocation.QPlaceSupplier.
setSupplierId
(
identifier
)
¶
identifier – unicode
设置
identifier
of the supplier.
另请参阅
PySide2.QtLocation.QPlaceSupplier.
setUrl
(
data
)
¶
data
–
QUrl
设置
url
of the supplier’s website.
另请参阅
PySide2.QtLocation.QPlaceSupplier.
supplierId
(
)
¶
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.
另请参阅