QPlaceImage Class | Qt Location 5.6

Qt 5.6 | Qt Location | C++ Classes | QPlaceImage

Qt 5.6.2 Reference Documentation

# QPlaceImage Class

The QPlaceImage class represents a reference to an image. More...

Header: | #include <QPlaceImage>
qmake: | QT += location
Since: | Qt 5.6
Inherits: | QPlaceContent

- List of all members, including inherited members

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