QPlaceImage 類

The 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

詳細描述

The QPlaceImage 類錶示圖像引用。

每個 QPlaceImage 錶示一組關於圖像的元數據,譬如:它的 URL,標識符及 MIME 類型。這些是特性除瞭那些提供通過 QPlaceContent .

注意:Place API 隻支持圖像作為 "僅檢索" 對象。嚮提供者提交圖像是不支持用例。

另請參閱 QPlaceContent .

成員函數文檔編製

QPlaceImage:: QPlaceImage ()

構造新的 QPlaceImage .

QPlaceImage:: QPlaceImage (const QPlaceContent & other )

構造副本為 other 若可能的話,否則構造默認圖像。

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