QPlaceImage 类

QPlaceImage 类表示图像引用。 更多...

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

公共函数

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

详细描述

QPlaceImage 类表示图像引用。

每个 QPlaceImage 表示一组关于图像的元数据,譬如:它的 URL,标识符及 MIME 类型。这些是特性除了那些提供通过 QPlaceContent .

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

另请参阅 QPlaceContent .

成员函数文档编制

QPlaceImage:: QPlaceImage ()

构造新的 QPlaceImage .

QPlaceImage:: QPlaceImage (const QPlaceContent & other )

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

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