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.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.