QPlaceImage

The QPlaceImage class represents a reference to an image. More

Inheritance diagram of PySide2.QtLocation.QPlaceImage

Synopsis

Functions

Detailed Description

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

class QPlaceImage

QPlaceImage(other)

param other

QPlaceContent

Constructs an new QPlaceImage .

Constructs a copy of other if possible, otherwise constructs a default image.

PySide2.QtLocation.QPlaceImage.imageId()
Return type

unicode

Returns the image’s identifier.

See also

setImageId()

PySide2.QtLocation.QPlaceImage.mimeType()
Return type

unicode

Returns the image’s MIME type.

See also

setMimeType()

PySide2.QtLocation.QPlaceImage.setImageId(identifier)
Parameters

identifier – unicode

Sets image’s identifier .

See also

imageId()

PySide2.QtLocation.QPlaceImage.setMimeType(data)
Parameters

data – unicode

Sets image’s MIME type .

See also

mimeType()

PySide2.QtLocation.QPlaceImage.setUrl(url)
Parameters

urlQUrl

Sets the image’s url .

See also

url()

PySide2.QtLocation.QPlaceImage.url()
Return type

QUrl

Returns the image’s url.

See also

setUrl()