QPlaceSupplier Class

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

头: #include <QPlaceSupplier>
qmake: QT += location
Since: Qt 5.6

该类在 Qt 5.6 引入。

公共函数

QPlaceSupplier (const QPlaceSupplier & other )
QPlaceSupplier ()
QPlaceSupplier & operator= (const QPlaceSupplier & other )
~QPlaceSupplier ()
QPlaceIcon icon () const
bool isEmpty () const
QString name () const
void setIcon (const QPlaceIcon & icon )
void setName (const QString & name )
void setSupplierId (const QString & 标识符 )
void setUrl (const QUrl & url )
QString supplierId () const
QUrl url () const
bool operator!= (const QPlaceSupplier & other ) const
bool operator== (const QPlaceSupplier & other ) const

详细描述

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 (const QPlaceSupplier & other )

构造副本为 other .

QPlaceSupplier:: QPlaceSupplier ()

Constructs a new supplier object.

QPlaceSupplier &QPlaceSupplier:: operator= (const QPlaceSupplier & other )

赋值 other to this supplier and returns a reference to this supplier.

QPlaceSupplier:: ~QPlaceSupplier ()

Destroys the supplier object.

QPlaceIcon QPlaceSupplier:: icon () const

Returns the icon of the supplier.

另请参阅 setIcon ().

bool QPlaceSupplier:: isEmpty () const

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

QString QPlaceSupplier:: name () const

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 QPlaceManager::locales () field defines what language is used.

另请参阅 setName ().

void QPlaceSupplier:: setIcon (const QPlaceIcon & icon )

设置 icon of the supplier.

另请参阅 icon ().

void QPlaceSupplier:: setName (const QString & name )

设置 name of the supplier.

另请参阅 name ().

void QPlaceSupplier:: setSupplierId (const QString & 标识符 )

设置 标识符 of the supplier.

另请参阅 supplierId ().

void QPlaceSupplier:: setUrl (const QUrl & url )

设置 url of the supplier's website.

另请参阅 url ().

QString QPlaceSupplier:: supplierId () const

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 ().

QUrl QPlaceSupplier:: url () const

Returns the URL of the supplier's website.

另请参阅 setUrl ().

bool QPlaceSupplier:: operator!= (const QPlaceSupplier & other ) const

Returns true if this supplier is not equal to other ,否则返回 false。

bool QPlaceSupplier:: operator== (const QPlaceSupplier & other ) const

Returns true if this supplier is equal to other ,否则返回 false。