diff options
author | Matthias Rauter <matthias.rauter@qt.io> | 2023-02-27 13:11:18 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-03-01 12:30:27 +0000 |
commit | 838426f5159c795fdeb94a6e657a478d4ac63511 (patch) | |
tree | 62a8fcae1966863ae2cf22c0d9ebaf6b182ff611 /src/location/quickmapitems/qdeclarativepolygonmapitem.cpp | |
parent | faefc8772a3317e7b881c5dd0542dd1c1abceb90 (diff) | |
download | qtlocation-838426f5159c795fdeb94a6e657a478d4ac63511.tar.gz |
Update the documentation
Pick-to: 6.5
Change-Id: Icff1282a22c3cefbbbbfb1dc03910066eb7c85f3
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/location/quickmapitems/qdeclarativepolygonmapitem.cpp')
-rw-r--r-- | src/location/quickmapitems/qdeclarativepolygonmapitem.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/location/quickmapitems/qdeclarativepolygonmapitem.cpp b/src/location/quickmapitems/qdeclarativepolygonmapitem.cpp index 1eee3eb0..1acd3e60 100644 --- a/src/location/quickmapitems/qdeclarativepolygonmapitem.cpp +++ b/src/location/quickmapitems/qdeclarativepolygonmapitem.cpp @@ -57,25 +57,12 @@ QT_BEGIN_NAMESPACE \l border.width properties. \note Since MapPolygons are geographic items, dragging a MapPolygon - (through the use of \l MouseArea) causes its vertices to be + (through the use of \l MouseArea or \l PointHander) causes its vertices to be recalculated in the geographic coordinate space. The edges retain the same geographic lengths (latitude and longitude differences between the vertices), but they remain straight. Apparent stretching of the item occurs when dragged to a different latitude. - \section2 Performance - - MapPolygons have a rendering cost that is O(n) with respect to the number - of vertices. This means that the per frame cost of having a Polygon on the - Map grows in direct proportion to the number of points on the Polygon. There - is an additional triangulation cost (approximately O(n log n)) which is - currently paid with each frame, but in future may be paid only upon adding - or removing points. - - Like the other map objects, MapPolygon is normally drawn without a smooth - appearance. Setting the \l {Item::opacity}{opacity} property will force the object to - be blended, which decreases performance considerably depending on the hardware in use. - \section2 Example Usage The following snippet shows a MapPolygon being used to display a triangle, |