QPlaceImage 类

The QPlaceImage class represents a reference to an image. 更多...

头: #include <QPlaceImage>
qmake: QT += location
Since: Qt 5.6
继承: QPlaceContent

该类在 Qt 5.6 引入。

公共函数

QPlaceImage (const QPlaceContent & other )
QPlaceImage ()
virtual ~QPlaceImage ()
QString imageId () const
QString mimeType () const
void setImageId (const QString & identifier )
void setMimeType (const QString & type )
void setUrl (const QUrl & url )
QUrl url () const

详细描述

Each QPlaceImage represents a set of metadata about an image such as it's url, identifier and MIME type. These are properties in addition to those provided by QPlaceContent .

注意:Place API 只支持图像作为 "仅检索" 对象。向提供者提交图像是不支持用例。

另请参阅 QPlaceContent .

成员函数文档编制

QPlaceImage:: QPlaceImage (const QPlaceContent & other )

构造副本为 other 若可能的话,否则构造默认图像。

QPlaceImage:: QPlaceImage ()

Constructs an new QPlaceImage.

[virtual] QPlaceImage:: ~QPlaceImage ()

析构函数。

QString QPlaceImage:: imageId () const

返回图像标识符。

另请参阅 setImageId ().

QString QPlaceImage:: mimeType () const

返回图像的 MIME 类型。

另请参阅 setMimeType ().

void QPlaceImage:: setImageId (const QString & identifier )

设置图像的 identifier .

另请参阅 imageId ().

void QPlaceImage:: setMimeType (const QString & type )

设置图像的 MIME type .

另请参阅 mimeType ().

void QPlaceImage:: setUrl (const QUrl & url )

设置图像的 url .

另请参阅 url ().

QUrl QPlaceImage:: url () const

返回图像的 URL。

另请参阅 setUrl ().