Skip to content

PlaceContentReply

Qt Base Class: QPlaceContentReply

Signature: QPlaceContentReply(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
PlaceReplyMixin
prettyqt.location.placereply
QPlaceContentReply
PySide6.QtLocation
QPlaceContentReply(self, parent: Optional[PySide6.QtCore.QObject] \= None) -> None

⋔ Inheritance diagram

graph TD
  1473573483424["location.PlaceContentReply"]
  1473573486352["location.PlaceReplyMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473573419008["QtLocation.QPlaceContentReply"]
  1473573399488["QtLocation.QPlaceReply"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473573486352 --> 1473573483424
  1473299815024 --> 1473573486352
  140713234304496 --> 1473299815024
  1473573419008 --> 1473573483424
  1473573399488 --> 1473573419008
  1473288842240 --> 1473573399488
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: PlaceReplyMixin, QPlaceContentReply

Manages a content retrieval operation started by an instance of QPlaceManager.

Source code in prettyqt\location\placecontentreply.py
class PlaceContentReply(location.PlaceReplyMixin, location.QPlaceContentReply):
    """Manages a content retrieval operation started by an instance of QPlaceManager."""

    def __len__(self):
        return self.totalCount()

    @classmethod
    def clone_from(cls, obj: location.QPlaceContentReply) -> Self:
        reply = cls(obj.parent())
        reply.setContent(obj.content())
        reply.setTotalCount(obj.totalCount())
        request = location.PlaceContentRequest(obj.nextPageRequest())
        reply.setNextPageRequest(request)
        request = location.PlaceContentRequest(obj.previousPageRequest())
        reply.setPreviousPageRequest(request)
        request = location.PlaceContentRequest(obj.request())
        reply.setRequest(request)
        return reply

    def get_next_page_request(self) -> location.PlaceContentRequest:
        return location.PlaceContentRequest(self.nextPageRequest())

    def get_previous_page_request(self) -> location.PlaceContentRequest:
        return location.PlaceContentRequest(self.previousPageRequest())

    def get_request(self) -> location.PlaceContentRequest:
        return location.PlaceContentRequest(self.request())

⌗ Property table

Qt Property Type Doc
objectName QString