The QGeoMapPolylineObject class is a QGeoMapObject used to draw a segmented line on a map. More...
#include <QGeoMapPolylineObject>
Inherits: QGeoMapObject.
This class was introduced in Qt Mobility 1.1.
QGeoMapPolylineObject () | |
~QGeoMapPolylineObject () | |
QList<QGeoCoordinate> | path () const |
QPen | pen () const |
void | setPath ( const QList<QGeoCoordinate> & path ) |
void | setPen ( const QPen & pen ) |
virtual QGeoMapObject::Type | type () const |
void | pathChanged ( const QList<QGeoCoordinate> & path ) |
void | penChanged ( const QPen & pen ) |
The QGeoMapPolylineObject class is a QGeoMapObject used to draw a segmented line on a map.
The polyline is specified by a list of at least 2 valid QGeoCoordinate instances and a line will be drawn between every adjacent pairs of coordinates in the list.
This property holds the ordered list of coordinates which define the segmented line to be drawn by this polyline object.
The default value of this property is an empty list of coordinates.
A line will be drawn between every pair of coordinates which are adjacent in the list.
Invalid coordinates in the list will be ignored, and if the list of coordinates contains less than 2 valid coordinates then the polyline 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 the polyline.
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 polyline object.
Destroys this polyline object.
This signal is emitted when the ordered list of coordinates that define the polyline to be drawn by this polyline 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 polyline 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.