Skip to content

PlaceRatings

Qt Base Class: QPlaceRatings

Signature: QPlaceRatings(self) -> None QPlaceRatings(self, other: PySide6.QtLocation.QPlaceRatings) -> None

Base classes

Name Children Inherits
QPlaceRatings
PySide6.QtLocation
QPlaceRatings(self) -> None

⋔ Inheritance diagram

graph TD
  1473573470736["location.PlaceRatings"]
  1473573369232["QtLocation.QPlaceRatings"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473573369232 --> 1473573470736
  1473291690208 --> 1473573369232
  140713234304496 --> 1473291690208

🛈 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()