PySide6.QtLocation.QPlaceContentReply

class QPlaceContentReply

The QPlaceContentReply class manages a content retrieval operation started by an instance of QPlaceManager . More

Inheritance diagram of PySide6.QtLocation.QPlaceContentReply

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

See Fetching Rich Content for an example on how to use a content reply.

__init__([parent=None])
Parameters:

parentQObject

Constructs a content reply with a given parent.

content()
Return type:

Dictionary with keys of type .int and values of type QPlaceContent.

Returns the collection of content retrieved.

See also

setContent()

nextPageRequest()
Return type:

QPlaceContentRequest

Returns a place content request that can be used to request the next batch of place content results.

previousPageRequest()
Return type:

QPlaceContentRequest

Returns a place content request that can be used to request the previous batch of place content results.

request()
Return type:

QPlaceContentRequest

Returns the content request that was used to generate this reply.

See also

setRequest()

setContent(content)
Parameters:

content – Dictionary with keys of type .int and values of type QPlaceContent.

Sets the content of the reply.

See also

content()

setNextPageRequest(next)
Parameters:

nextQPlaceContentRequest

Sets the place content request that can be used to request the next batch of place content results to next.

setPreviousPageRequest(previous)
Parameters:

previousQPlaceContentRequest

Sets the place content request that can be used to request the previous batch of place content results to previous.

setRequest(request)
Parameters:

requestQPlaceContentRequest

Sets the content request used to generate this this reply.

See also

request()

setTotalCount(total)
Parameters:

total – int

Sets the total number of content objects for a place.

See also

totalCount()

totalCount()
Return type:

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 .

See also

setTotalCount()