QGeoMapPolygonObject Class ReferenceThe QGeoMapPolygonObject class is a QGeoMapObject used to draw a polygon on a map. More... #include <QGeoMapPolygonObject> Inherits: QGeoMapObject. This class was introduced in Qt Mobility 1.1. Properties
Public Functions
Reimplemented Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe QGeoMapPolygonObject class is a QGeoMapObject used to draw a polygon on a map. The polygon is specified by a set of at least 3 valid QGeoCoordinate instances listed in the same order in which the coordinates would be traversed when traveling around the border of the polygon. Property Documentation
|
QBrush | brush () const |
void | setBrush ( const QBrush & brush ) |
Notifier signal:
void | brushChanged ( const QBrush & brush ) |
This property holds the ordered list of coordinates which define the polygon to be drawn by this polygon object.
The default value of this property is an empty list of coordinates.
The coordinates should be listed in the order in which they would be traversed when traveling around the border of the polygon.
Invalid coordinates in the list will be ignored, and if the list of coordinates contains less than 3 valid coordinates then the polygon object will not be displayed.
This property was introduced in Qt Mobility 1.1.
Access functions:
QList<QGeoCoordinate> | path () const |
void | setPath ( const QList<QGeoCoordinate> & path ) |
Notifier signal:
void | pathChanged ( const QList<QGeoCoordinate> & path ) |
This property holds the pen that will be used to draw this object.
The pen is used to draw an outline around the polygon. The polygon is filled using the QGeoMapPolygonObject::brush property.
The pen will be treated as a cosmetic pen, which means that the width of the pen will be independent of the zoom level of the map.
This property was introduced in Qt Mobility 1.1.
Access functions:
QPen | pen () const |
void | setPen ( const QPen & pen ) |
Notifier signal:
void | penChanged ( const QPen & pen ) |
Constructs a new polygon object.
Destroys this polygon object.
This signal is emitted when the brush used to fill in the interior of this polygon object has changed.
The new value is brush.
This function was introduced in Qt Mobility 1.1.
This signal is emitted when the ordered list of coordinates that define the polygon to be drawn by this polygon object has changed.
The new value is path.
This function was introduced in Qt Mobility 1.1.
This signal is emitted when the pen used to draw the edge of this polygon object has changed.
The new value is pen.
This function was introduced in Qt Mobility 1.1.
Reimplemented from QGeoMapObject::type().
This function was introduced in Qt Mobility 1.1.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.2 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com