QPlaceContentReplyclass manages a content retrieval operation started by an instance ofQPlaceManager. 更多 …
def
content
()
def
nextPageRequest
()
def
previousPageRequest
()
def
request
()
def
setContent
(content)
def
setNextPageRequest
(next)
def
setPreviousPageRequest
(previous)
def
setRequest
(request)
def
setTotalCount
(total)
def
totalCount
()
见 Fetching Rich Content for an example on how to use a content reply.
另请参阅
QPlaceContentRequestQPlaceManager
QPlaceContentReply
(
[
parent=None
]
)
¶
- param parent
QObject
Constructs a content reply with a given
parent
.
PySide2.QtLocation.QPlaceContentReply.
content
(
)
¶
Returns the collection of content retrieved.
另请参阅
PySide2.QtLocation.QPlaceContentReply.
nextPageRequest
(
)
¶
Returns a place content request that can be used to request the next batch of place content results.
另请参阅
PySide2.QtLocation.QPlaceContentReply.
previousPageRequest
(
)
¶
Returns a place content request that can be used to request the previous batch of place content results.
PySide2.QtLocation.QPlaceContentReply.
request
(
)
¶
Returns the content request that was used to generate this reply.
另请参阅
PySide2.QtLocation.QPlaceContentReply.
setContent
(
content
)
¶
content –
设置
content
of the reply.
另请参阅
PySide2.QtLocation.QPlaceContentReply.
setNextPageRequest
(
next
)
¶
next
–
QPlaceContentRequest
Sets the place content request that can be used to request the next batch of place content results to
next
.
另请参阅
PySide2.QtLocation.QPlaceContentReply.
setPreviousPageRequest
(
上一
)
¶
上一
–
QPlaceContentRequest
Sets the place content request that can be used to request the previous batch of place content results to
上一
.
PySide2.QtLocation.QPlaceContentReply.
setRequest
(
request
)
¶
request
–
QPlaceContentRequest
Sets the content
request
used to generate this this reply.
另请参阅
PySide2.QtLocation.QPlaceContentReply.
setTotalCount
(
total
)
¶
total
–
int
设置
total
number of content objects for a place.
另请参阅
PySide2.QtLocation.QPlaceContentReply.
totalCount
(
)
¶
int
Returns the total number of content objects for a place. If the total number of content objects cannot be counted, a value of -1 is returned. This count only refers to the total count for a single content type, that is, the content type that was specified when content was requested with the
QPlaceManager
.
另请参阅