Skip to content

PlaceMatchReply

Qt Base Class: QPlaceMatchReply

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

Base classes

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

⋔ Inheritance diagram

graph TD
  1473573487328["location.PlaceMatchReply"]
  1473573486352["location.PlaceReplyMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473573409248["QtLocation.QPlaceMatchReply"]
  1473573399488["QtLocation.QPlaceReply"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473573486352 --> 1473573487328
  1473299815024 --> 1473573486352
  140713234304496 --> 1473299815024
  1473573409248 --> 1473573487328
  1473573399488 --> 1473573409248
  1473288842240 --> 1473573399488
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: PlaceReplyMixin, QPlaceMatchReply

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

Source code in prettyqt\location\placematchreply.py
class PlaceMatchReply(location.PlaceReplyMixin, location.QPlaceMatchReply):
    """Manages a place matching operation started by an instance of QPlaceManager."""

    def __iter__(self) -> Iterator[location.Place]:
        return iter(self.get_places())

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

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

    @classmethod
    def clone_from(cls, obj: location.QPlaceMatchReply) -> Self:
        reply = cls(obj.parent())
        reply.setPlaces([location.Place(i) for i in obj.places()])
        request = location.PlaceMatchRequest(obj.request())
        reply.setRequest(request)
        return reply

    def get_places(self) -> list[location.Place]:
        return [location.Place(i) for i in self.places()]

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

⌗ Property table

Qt Property Type Doc
objectName QString