QPlaceImage Class

The QPlaceImage class represents a reference to an image. 更多...

头文件: #include <QPlaceImage>
qmake: QT += location
开始支持版本: 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 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.

参见 QPlaceContent.

成员函数

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.

参见 setImageId().

QString QPlaceImage::mimeType() const

Returns the image's MIME type.

参见 setMimeType().

void QPlaceImage::setImageId(const QString &identifier)

Sets image's identifier.

参见 imageId().

void QPlaceImage::setMimeType(const QString &type)

Sets image's MIME type.

参见 mimeType().

void QPlaceImage::setUrl(const QUrl &url)

Sets the image's url.

参见 url().

QUrl QPlaceImage::url() const

Returns the image's url.

参见 setUrl().