内容表

上一话题

QPlaceIdReply

下一话题

QPlaceManager

QPlaceImage

QPlaceImage class represents a reference to an image. 更多

Inheritance diagram of PySide2.QtLocation.QPlaceImage

概要

函数

详细描述

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

class QPlaceImage

QPlaceImage(other)

param other

QPlaceContent

Constructs an new QPlaceImage .

构造副本为 other if possible, otherwise constructs a default image.

PySide2.QtLocation.QPlaceImage. imageId ( )
返回类型

unicode

Returns the image’s identifier.

另请参阅

setImageId()

PySide2.QtLocation.QPlaceImage. mimeType ( )
返回类型

unicode

Returns the image’s MIME type.

另请参阅

setMimeType()

PySide2.QtLocation.QPlaceImage. setImageId ( identifier )
参数

identifier – unicode

Sets image’s identifier .

另请参阅

imageId()

PySide2.QtLocation.QPlaceImage. setMimeType ( data )
参数

data – unicode

Sets image’s MIME type .

另请参阅

mimeType()

PySide2.QtLocation.QPlaceImage. setUrl ( url )
参数

url QUrl

Sets the image’s url .

另请参阅

url()

PySide2.QtLocation.QPlaceImage. url ( )
返回类型

QUrl

Returns the image’s url.

另请参阅

setUrl()