Skip to content

PlaceRatings

Base classes

Name Children Inherits
QPlaceRatings
PySide6.QtLocation
QPlaceRatings(self, other: PySide6.QtLocation.QPlaceRatings, /, *, average: float | None \= None, maximum: float | None \= None, count: int | None \= None) -> None

⋔ Inheritance diagram

graph TD
  1104518564["location.PlaceRatings"]
  3480317760["QtLocation.QPlaceRatings"]
  37984305["Shiboken.Object"]
  2751680898["builtins.object"]
  3480317760 --> 1104518564
  37984305 --> 3480317760
  2751680898 --> 37984305

🛈 DocStrings

Bases: QPlaceRatings

Holds rating information about a place.

Source code in prettyqt/location/placeratings.py
class PlaceRatings(QtLocation.QPlaceRatings):
    """Holds rating information about a place."""

    def __bool__(self):
        return not self.isEmpty()

    def __float__(self):
        return self.average()

:fa-brands-github: Show source on GitHub