Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
Vertex Struct Reference

\qmltype MapCircle \instantiates QDeclarativeCircleMapItem \inqmlmodule QtLocation More...

+ Collaboration diagram for Vertex:

Public Attributes

QVector2D position
 

Detailed Description

\qmltype MapCircle \instantiates QDeclarativeCircleMapItem \inqmlmodule QtLocation

Since
QtLocation 5.5

The MapCircle type displays a geographic circle on a Map.

The MapCircle type displays a geographic circle on a Map, which consists of all points that are within a set distance from one central point. Depending on map projection, a geographic circle may not always be a perfect circle on the screen: for instance, in the Mercator projection, circles become ovoid in shape as they near the poles. To display a perfect screen circle around a point, use a MapQuickItem containing a relevant Qt Quick type instead.

By default, the circle is displayed as a 1 pixel black border with no fill. To change its appearance, use the \l {color}, \l {border.color} and \l {border.width} properties.

Internally, a MapCircle is implemented as a many-sided polygon. To calculate the radius points it uses a spherical model of the Earth, similar to the atDistanceAndAzimuth method of the \l {coordinate} type. These two things can occasionally have implications for the accuracy of the circle's shape, depending on position and map projection.

Note
Dragging a MapCircle (through the use of \l {MouseArea} or \l {PointHandler}) causes new points to be generated at the same distance (in meters) from the center. This is in contrast to other map items which store their dimensions in terms of latitude and longitude differences between vertices.

Definition at line 103 of file qdeclarativecirclemapitem.cpp.

Member Data Documentation

◆ position

QVector2D Vertex::position

Definition at line 105 of file qdeclarativecirclemapitem.cpp.


The documentation for this struct was generated from the following file: