QPlaceImage¶
The
QPlaceImage
class represents a reference to an image. More…
Synopsis¶
Functions¶
def
imageId
()def
mimeType
()def
setImageId
(identifier)def
setMimeType
(data)def
setUrl
(url)def
url
()
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 byQPlaceContent
.Note: The Places API only supports images as ‘retrieve-only’ objects. Submitting images to a provider is not a supported use case.
See also
- class PySide2.QtLocation.QPlaceImage¶
PySide2.QtLocation.QPlaceImage(other)
- param other:
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
- PySide2.QtLocation.QPlaceImage.mimeType()¶
- Return type:
str
Returns the image’s MIME type.
See also
- PySide2.QtLocation.QPlaceImage.setImageId(identifier)¶
- Parameters:
identifier – str
Sets image’s
identifier
.See also
- PySide2.QtLocation.QPlaceImage.setMimeType(data)¶
- Parameters:
data – str
Sets image’s MIME
type
.See also
- PySide2.QtLocation.QPlaceImage.setUrl(url)¶
- Parameters:
url –
PySide2.QtCore.QUrl
Sets the image’s
url
.See also
- PySide2.QtLocation.QPlaceImage.url()¶
- Return type:
Returns the image’s url.
See also
© 2022 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.