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 PySide2.QtLocation.QPlaceImage

PySide2.QtLocation.QPlaceImage(other)

param other:

PySide2.QtLocation.QPlaceContent

Constructs an new QPlaceImage .

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

PySide2.QtLocation.QPlaceImage.imageId()
Return type:

str

Returns the image’s identifier.

See also

setImageId()

PySide2.QtLocation.QPlaceImage.mimeType()
Return type:

str

Returns the image’s MIME type.

See also

setMimeType()

PySide2.QtLocation.QPlaceImage.setImageId(identifier)
Parameters:

identifier – str

Sets image’s identifier .

See also

imageId()

PySide2.QtLocation.QPlaceImage.setMimeType(data)
Parameters:

data – str

Sets image’s MIME type .

See also

mimeType()

PySide2.QtLocation.QPlaceImage.setUrl(url)
Parameters:

urlPySide2.QtCore.QUrl

Sets the image’s url .

See also

url()

PySide2.QtLocation.QPlaceImage.url()
Return type:

PySide2.QtCore.QUrl

Returns the image’s url.

See also

setUrl()