QGeoCircle

The QGeoCircle class defines a circular geographic area. More

Inheritance diagram of PySide6.QtPositioning.QGeoCircle

Synopsis

Functions

Detailed Description

The circle is defined in terms of a QGeoCoordinate which specifies the center of the circle and a qreal which specifies the radius of the circle in meters.

The circle is considered invalid if the center coordinate is invalid or if the radius is less than zero.

This class is a Q_GADGET since Qt 5.5. It can be directly used from C++ and QML .

class PySide6.QtPositioning.QGeoCircle

PySide6.QtPositioning.QGeoCircle(other)

PySide6.QtPositioning.QGeoCircle(center[, radius=-1.0])

PySide6.QtPositioning.QGeoCircle(other)

Parameters

Constructs a new, invalid geo circle.

Constructs a new geo circle from the contents of other.

Constructs a new geo circle centered at center and with a radius of radius meters.

Constructs a new geo circle from the contents of other.

PySide6.QtPositioning.QGeoCircle.extendCircle(coordinate)
Parameters

coordinatePySide6.QtPositioning.QGeoCoordinate

Extends the geo circle to also cover the coordinate coordinate

PySide6.QtPositioning.QGeoCircle.radius()
Return type

float

This property holds This property holds the circle radius in meters..

The circle is considered invalid if this property is negative.

By default, the radius is initialized with -1.

While this property is introduced in Qt 5.5, the related accessor functions exist since the first version of this class.

PySide6.QtPositioning.QGeoCircle.setCenter(center)
Parameters

centerPySide6.QtPositioning.QGeoCoordinate

This property holds This property holds the center coordinate for the geo circle..

The circle is considered invalid if this property contains an invalid coordinate.

A default constructed QGeoCircle uses an invalid QGeoCoordinate as center.

While this property is introduced in Qt 5.5, the related accessor functions exist since the first version of this class.

PySide6.QtPositioning.QGeoCircle.setRadius(radius)
Parameters

radius – float

This property holds This property holds the circle radius in meters..

The circle is considered invalid if this property is negative.

By default, the radius is initialized with -1.

While this property is introduced in Qt 5.5, the related accessor functions exist since the first version of this class.

PySide6.QtPositioning.QGeoCircle.translate(degreesLatitude, degreesLongitude)
Parameters
  • degreesLatitudedouble

  • degreesLongitudedouble

Translates this geo circle by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

PySide6.QtPositioning.QGeoCircle.translated(degreesLatitude, degreesLongitude)
Parameters
  • degreesLatitudedouble

  • degreesLongitudedouble

Return type

PySide6.QtPositioning.QGeoCircle

Returns a copy of this geo circle translated by degreesLatitude northwards and degreesLongitude eastwards.

Negative values of degreesLatitude and degreesLongitude correspond to southward and westward translation respectively.

See also

translate()