内容表

上一话题

QPlaceSearchSuggestionReply

下一话题

QPlaceUser

QPlaceSupplier

QPlaceSupplier class represents a supplier of a place or content associated with a place. 更多

Inheritance diagram of PySide2.QtLocation.QPlaceSupplier

概要

函数

详细描述

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.

构造副本为 other .

PySide2.QtLocation.QPlaceSupplier. icon ( )
返回类型

QPlaceIcon

Returns the icon of the supplier.

另请参阅

setIcon()

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.

另请参阅

setName()

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.

另请参阅

icon()

PySide2.QtLocation.QPlaceSupplier. setName ( data )
参数

data – unicode

设置 name of the supplier.

另请参阅

name()

PySide2.QtLocation.QPlaceSupplier. setSupplierId ( identifier )
参数

identifier – unicode

设置 identifier of the supplier.

另请参阅

supplierId()

PySide2.QtLocation.QPlaceSupplier. setUrl ( data )
参数

data QUrl

设置 url of the supplier’s website.

另请参阅

url()

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.

另请参阅

setSupplierId()

PySide2.QtLocation.QPlaceSupplier. url ( )
返回类型

QUrl

Returns the URL of the supplier’s website.

另请参阅

setUrl()