- Qt 6.11
- Qt Positioning
- QML Types
- geoCircle
- Qt 6.11.2 Reference Documentation

# geoCircle QML Value Type

The geoCircle type represents a circular geographic area. More...

Import Statement: | `import QtPositioning`

## Properties

- center : geoCoordinate
- radius : real

## Detailed Description

The geoCircle type is a geoShape that represents a circular geographic area. It is a direct representation of a QGeoCircle and is defined in terms of a coordinate 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.

## Example Usage

To create a geoCircle value, use the QtPositioning.circle() function:

     import QtPositioning

     Item {
         property geoCircle region: QtPositioning.circle(QtPositioning.coordinate(-27.5, 153.1), 1000)
     }

When integrating with C++, any QGeoCircle value passed into QML from C++ is automatically converted into a geoCircle value. Similarly, geoCircle values are converted to QGeoCircle values when passed from QML to C++.

## Property Documentation

### center : geoCoordinate

This property holds the coordinate of the center of the geoCircle.

### radius : real

This property holds the radius of the geoCircle in meters.

The default value for the radius is -1 indicating an invalid geoCircle area.