Skip to content

PlaceSearchReply

Qt Base Class: QPlaceSearchReply

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

Base classes

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

⋔ Inheritance diagram

graph TD
  1473573492208["location.PlaceSearchReply"]
  1473573486352["location.PlaceReplyMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473573406320["QtLocation.QPlaceSearchReply"]
  1473573399488["QtLocation.QPlaceReply"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473573486352 --> 1473573492208
  1473299815024 --> 1473573486352
  140713234304496 --> 1473299815024
  1473573406320 --> 1473573492208
  1473573399488 --> 1473573406320
  1473288842240 --> 1473573399488
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: PlaceReplyMixin, QPlaceSearchReply

Manages a place search operation started by an instance of QPlaceManager.

Source code in prettyqt\location\placesearchreply.py
class PlaceSearchReply(location.PlaceReplyMixin, location.QPlaceSearchReply):
    """Manages a place search operation started by an instance of QPlaceManager."""

    def __iter__(self) -> Iterator[location.PlaceSearchResult]:
        return iter(self.get_results())

    def __getitem__(self, index: int) -> location.PlaceSearchResult:
        return self.get_results()[index]

    def __len__(self):
        return len(self.get_results())

    @classmethod
    def clone_from(cls, obj: location.QPlaceSearchReply) -> Self:
        reply = cls(obj.parent())
        reply.setResults([location.PlaceSearchResult(i) for i in obj.results()])
        request = location.PlaceSearchRequest(obj.nextPageRequest())
        reply.setNextPageRequest(request)
        request = location.PlaceSearchRequest(obj.previousPageRequest())
        reply.setPreviousPageRequest(request)
        request = location.PlaceSearchRequest(obj.request())
        reply.setRequest(request)
        return reply

    def get_results(self) -> list[location.PlaceSearchResult]:
        return [location.PlaceSearchResult(i) for i in self.results()]

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

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

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

⌗ Property table

Qt Property Type Doc
objectName QString