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 .
構造副本為 other 若可能的話,否則構造默認圖像。
Constructs an new QPlaceImage.
[虛擬]
QPlaceImage::
~QPlaceImage
()
析構函數。
返迴圖像標識符。
另請參閱 setImageId ().
返迴圖像的 MIME 類型。
另請參閱 setMimeType ().
設置圖像的 identifier .
另請參閱 imageId ().
設置圖像的 MIME type .
另請參閱 mimeType ().
設置圖像的 url .
另請參閱 url ().
返迴圖像的 URL。
另請參閱 setUrl ().