Qt Mobility Reference Documentation

QGeoMapPixmapObject Class Reference

The QGeoMapPixmapObject class is a QGeoMapObject used to draw a pixmap on a map. More...

 #include <QGeoMapPixmapObject>

Inherits QGeoMapObject.


Properties


Public Functions

QGeoMapPixmapObject ( QGeoMapObject * parent = 0 )
QGeoMapPixmapObject ( const QGeoCoordinate & coordinate, const QPoint & offset = QPoint( 0, 0 ), const QPixmap & pixmap = QPixmap(), QGeoMapObject * parent = 0 )
~QGeoMapPixmapObject ()
QGeoCoordinate coordinate () const
QPoint offset () const
QPixmap pixmap () const
void setCoordinate ( const QGeoCoordinate & coordinate )
void setOffset ( const QPoint & offset )
void setPixmap ( const QPixmap & pixmap )

Signals

void coordinateChanged ( const QGeoCoordinate & coordinate )
void offsetChanged ( const QPoint & offset )
void pixmapChanged ( const QPixmap & pixmap )

Detailed Description

The QGeoMapPixmapObject class is a QGeoMapObject used to draw a pixmap on a map.

The pixmap object is rendered such that the upper left corner of QGeoMapPixmapObject::pixmap will be drawn QGeoMapPixmapObject::offset pixels away from the position of QGeoMapPixmapObject::coordinate on the map.


Property Documentation

coordinate : QGeoCoordinate

This property holds this property holds the coordinate that specifies where the pixmap will be drawn by this pixmap object.

The default value of this property is an invalid coordinate. While the value of this property is invalid the pixmap object will not be displayed.

Access functions:

QGeoCoordinate coordinate () const
void setCoordinate ( const QGeoCoordinate & coordinate )

Notifier signal:

void coordinateChanged ( const QGeoCoordinate & coordinate )

offset : QPoint

This property holds this property holds the offset in pixels at which the pixmap will be drawn by this pixmap object.

The default value of this property is QPoint(0, 0). If this value is not changed the upper left coordinate of the pixmap will be drawn at the coordinate specified by QGeoMapPixmapObject::coordinate.

The offset is in pixels and is independent of the zoom level of the map. The offset property is provided so that pixmaps such as arrows can be drawn with the point of the arrow placed exactly on the associated coordinate.

Access functions:

QPoint offset () const
void setOffset ( const QPoint & offset )

Notifier signal:

void offsetChanged ( const QPoint & offset )

pixmap : QPixmap

This property holds this property holds the pixmap that will be drawn by this pixmap object.

The default value of this property is a null pixmap. While the value of this property is the null pixmap the pixmap object will not be displayed.

The pixmap will be drawn such that the upper left corner of the pixmap will be drawn QGeoMapPixmapObject::offset pixels away from the position of QGeoMapPixmapObject::coordinate on the map.

Access functions:

QPixmap pixmap () const
void setPixmap ( const QPixmap & pixmap )

Notifier signal:

void pixmapChanged ( const QPixmap & pixmap )

Member Function Documentation

QGeoMapPixmapObject::QGeoMapPixmapObject ( QGeoMapObject * parent = 0 )

Constructs a new pixmap object with the parent parent.

QGeoMapPixmapObject::QGeoMapPixmapObject ( const QGeoCoordinate & coordinate, const QPoint & offset = QPoint( 0, 0 ), const QPixmap & pixmap = QPixmap(), QGeoMapObject * parent = 0 )

Constructs a new pixmap object which will draw the pixmap pixmap at an offset of offset pixels from the coordinate coordinate, with the parent parent.

QGeoMapPixmapObject::~QGeoMapPixmapObject ()

Destroys this pixmap object.

void QGeoMapPixmapObject::coordinateChanged ( const QGeoCoordinate & coordinate ) [signal]

void QGeoMapPixmapObject::offsetChanged ( const QPoint & offset ) [signal]

void QGeoMapPixmapObject::pixmapChanged ( const QPixmap & pixmap ) [signal]

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.