Skip to content

GeoRectangle

Qt Base Class: QGeoRectangle

Signature: QGeoRectangle(self) -> None QGeoRectangle(self, center: PySide6.QtPositioning.QGeoCoordinate, degreesWidth: float, degreesHeight: float) -> None QGeoRectangle(self, coordinates: Sequence[PySide6.QtPositioning.QGeoCoordinate]) -> None QGeoRectangle(self, other: PySide6.QtPositioning.QGeoShape) -> None QGeoRectangle(self, other: Union[PySide6.QtPositioning.QGeoRectangle, PySide6.QtPositioning.QGeoShape, Sequence[PySide6.QtPositioning.QGeoCoordinate]]) -> None QGeoRectangle(self, topLeft: PySide6.QtPositioning.QGeoCoordinate, bottomRight: PySide6.QtPositioning.QGeoCoordinate) -> None

Base classes

Name Children Inherits
GeoShapeMixin
prettyqt.positioning.geoshape
QGeoRectangle
PySide6.QtPositioning
QGeoRectangle(self) -> None

⋔ Inheritance diagram

graph TD
  1473573454144["positioning.GeoRectangle"]
  1473573419984["positioning.GeoShapeMixin"]
  140713234304496["builtins.object"]
  1473573324336["QtPositioning.QGeoRectangle"]
  1473573320432["QtPositioning.QGeoShape"]
  1473291690208["Shiboken.Object"]
  1473573419984 --> 1473573454144
  140713234304496 --> 1473573419984
  1473573324336 --> 1473573454144
  1473573320432 --> 1473573324336
  1473291690208 --> 1473573320432
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: GeoShapeMixin, QGeoRectangle

Source code in prettyqt\positioning\georectangle.py
class GeoRectangle(positioning.GeoShapeMixin, QtPositioning.QGeoRectangle):
    def __repr__(self):
        return get_repr(self, self.get_top_left(), self.get_bottom_right())

    def get_top_left(self) -> positioning.GeoCoordinate:
        return positioning.GeoCoordinate(self.topLeft())

    def get_bottom_right(self) -> positioning.GeoCoordinate:
        return positioning.GeoCoordinate(self.bottomRight())