QPlaceImage Class
The QPlaceImage class represents a reference to an image. More...
Header: | #include <QPlaceImage> |
qmake: | QT += location |
Since: | Qt 5.6 |
Inherits: | QPlaceContent |
Public Functions
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 |
- 10 public functions inherited from QPlaceContent
Detailed Description
The QPlaceImage class represents a reference to an image.
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.
Note: The Places API only supports images as 'retrieve-only' objects. Submitting images to a provider is not a supported use case.
See also QPlaceContent.
Member Function Documentation
QPlaceImage::QPlaceImage()
Constructs an new QPlaceImage.
QPlaceImage::QPlaceImage(const QPlaceContent &other)
Constructs a copy of other if possible, otherwise constructs a default image.
[virtual]
QPlaceImage::~QPlaceImage()
Destructor.
QString QPlaceImage::imageId() const
Returns the image's identifier.
See also setImageId().
QString QPlaceImage::mimeType() const
Returns the image's MIME type.
See also setMimeType().
void QPlaceImage::setImageId(const QString &identifier)
Sets image's identifier.
See also imageId().
void QPlaceImage::setMimeType(const QString &type)
Sets image's MIME type.
See also mimeType().
void QPlaceImage::setUrl(const QUrl &url)
Sets the image's url.
See also url().
QUrl QPlaceImage::url() const
Returns the image's url.
See also setUrl().
© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.