QtMobility Reference Documentation

QGeoMapOverlay Class Reference

The QGeoMapOverlay class is used to draw overlays on the map. More...

 #include <QGeoMapOverlay>

This class was introduced in Qt Mobility 1.1.

Public Functions

QGeoMapOverlay ()
virtual ~QGeoMapOverlay ()
virtual void paint ( QPainter * painter, const QStyleOptionGraphicsItem * option ) = 0

Protected Functions

QGeoMapData const * mapData () const

Detailed Description

The QGeoMapOverlay class is used to draw overlays on the map.

This allows for general drawing to occur in overlays above the map.

Member Function Documentation

QGeoMapOverlay::QGeoMapOverlay ()

Constructs a new map overlay object.

QGeoMapOverlay::~QGeoMapOverlay () [virtual]

Destroys this map overlay object.

QGeoMapData const * QGeoMapOverlay::mapData () const [protected]

Returns the QGeoMapData instance that this overlay is associated, or 0 if there is not such instance.

The QGeoMapData instance provides access to information such as the zoom level and viewport position as well as methods to convert screen positions to coordinates and vice-versa.

This function was introduced in Qt Mobility 1.1.

void QGeoMapOverlay::paint ( QPainter * painter, const QStyleOptionGraphicsItem * option ) [pure virtual]

Paints the overlay on painter, using the options option.

This function was introduced in Qt Mobility 1.1.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.