内容表

上一话题

QPlaceIcon

下一话题

QPlaceImage

QPlaceIdReply

QPlaceIdReply class manages operations which return an identifier such as saving and removal operations of places and categories. 更多

Inheritance diagram of PySide2.QtLocation.QPlaceIdReply

概要

函数

详细描述

QPlaceIdReply can be considered a multipurpose reply in that it can be used to save places, save categories, remove places and remove categories. In each case it returns an identifier of the place or category that was added, modified or removed.

Saving a place for an example of how to use an identifier reply.

另请参阅

QPlaceManager

class QPlaceIdReply ( operationType [ , parent=None ] )
param parent

QObject

param operationType

OperationType

Constructs a reply which contains the identifier of the object operated upon. The reply is for the given operationType 和采用 parent .

PySide2.QtLocation.QPlaceIdReply. OperationType

Defines the type of operation that was used to generate this reply.

常量

描述

QPlaceIdReply.SavePlace

The reply was created for a save place operation

QPlaceIdReply.RemovePlace

The reply was created for a remove place operation.

QPlaceIdReply.SaveCategory

The reply was created for a save category operation

QPlaceIdReply.RemoveCategory

The reply was created for a remove category operation.

PySide2.QtLocation.QPlaceIdReply. id ( )
返回类型

unicode

Returns the relevant identifier for the operation. For example for a save place operation, the identifier is that of the saved place. For a category removal operation, it is the identifier of the category that was removed.

另请参阅

setId()

PySide2.QtLocation.QPlaceIdReply. operationType ( )
返回类型

OperationType

Returns the operation type of the reply. This means whether this identifier reply was for a save place operation, remove category operation and so on.

PySide2.QtLocation.QPlaceIdReply. setId ( identifier )
参数

identifier – unicode

设置 identifier of the reply.

另请参阅

id()