QPlaceReplyclass manages an operation started by an instance ofQPlaceManagerand serves as a base class for more specialized replies. 更多 …
继承者: QPlaceContentReply , QPlaceDetailsReply , QPlaceIdReply , QPlaceMatchReply , QPlaceSearchReply , QPlaceSearchSuggestionReply
def
error
()
def
errorString
()
def
isFinished
()
def
setError
(error, errorString)
def
setFinished
(finished)
def
aborted
()
def
contentUpdated
()
def
error
(error[, errorString=””])
def
finished
()
QPlaceReplyand each of its specialized subclasses manage the state and results of their corresponding operations. TheQPlaceReplyitself is used for operations that have no results, that is, it only necessary to know if the operation succeeded or failed.
finished()signal can be used to monitor the progress of an operation. Once an operation is complete, theerror()anderrorString()methods provide information on whether the operation completed successfully. If successful, the reply will contain the results for that operation, that is, each subclass will have appropriate functions to retrieve the results of an operation.另请参阅
QPlaceManager
QPlaceReply
(
[
parent=None
]
)
¶
- param parent
QObject
Constructs a reply object with a given
parent
.
PySide2.QtLocation.QPlaceReply.
Error
¶
Describes an error which occurred during an operation.
|
常量 |
描述 |
|---|---|
|
QPlaceReply.NoError |
No error has occurred |
|
QPlaceReply.PlaceDoesNotExistError |
A specified place could not be found |
|
QPlaceReply.CategoryDoesNotExistError |
A specified category could not be found |
|
QPlaceReply.CommunicationError |
An error occurred communicating with the service provider. |
|
QPlaceReply.ParseError |
The response from the service provider or an import file was in an unrecognizable format |
|
QPlaceReply.PermissionsError |
The operation failed because of insufficient permissions. |
|
QPlaceReply.UnsupportedError |
The operation was not supported by the service provider. |
|
QPlaceReply.BadArgumentError |
. A parameter that was provided was invalid. |
|
QPlaceReply.CancelError |
The operation was canceled. |
|
QPlaceReply.UnknownError |
An error occurred which does not fit into any of the other categories. |
PySide2.QtLocation.QPlaceReply.
Type
¶
Describes the reply’s type.
|
常量 |
描述 |
|---|---|
|
QPlaceReply.Reply |
This is a generic reply. |
|
QPlaceReply.DetailsReply |
This is a reply for the retrieval of place details |
|
QPlaceReply.SearchReply |
This is a reply for the place search operation. |
|
QPlaceReply.SearchSuggestionReply |
This is a reply for a search suggestion operation. |
|
QPlaceReply.ContentReply |
This is a reply for content associated with a place. |
|
QPlaceReply.IdReply |
This is a reply that returns an identifier of a place or category. Typically used for place or category save and remove operations. |
|
QPlaceReply.MatchReply |
This is a reply that returns places that match those from another provider. |
PySide2.QtLocation.QPlaceReply.
aborted
(
)
¶
PySide2.QtLocation.QPlaceReply.
contentUpdated
(
)
¶
PySide2.QtLocation.QPlaceReply.
error
(
)
¶
Returns the error code.
另请参阅
PySide2.QtLocation.QPlaceReply.
error
(
error
[
,
errorString=""
]
)
¶
error
–
Error
errorString – unicode
PySide2.QtLocation.QPlaceReply.
errorString
(
)
¶
unicode
Returns the error string of the reply. The error string is intended to be used by developers only and is not fit to be displayed to an end user.
If no error has occurred, the string is empty.
PySide2.QtLocation.QPlaceReply.
finished
(
)
¶
PySide2.QtLocation.QPlaceReply.
isFinished
(
)
¶
bool
Return true if the reply has completed.
PySide2.QtLocation.QPlaceReply.
setError
(
error
,
errorString
)
¶
error
–
Error
errorString – unicode
设置
error
and
errorString
of the reply. This function does not cause the
error
(
Error
, const
QString
&
errorString
) signal to be emitted.
另请参阅
PySide2.QtLocation.QPlaceReply.
setFinished
(
finished
)
¶
finished
–
bool
Sets the status of whether the reply is
finished
or not. This function does not cause the
finished()
signal to be emitted.
另请参阅