QGeoMapPixmapObject Class ReferenceThe QGeoMapPixmapObject class is a QGeoMapObject used to draw a pixmap on a map. More... #include <QGeoMapPixmapObject> Inherits: QGeoMapObject. This class was introduced in Qt Mobility 1.1. Properties
Public Functions
Reimplemented Public Functions
Signals
Additional Inherited Members
Detailed DescriptionThe 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
|
QGeoCoordinate | coordinate () const |
void | setCoordinate ( const QGeoCoordinate & coordinate ) |
Notifier signal:
void | coordinateChanged ( const QGeoCoordinate & coordinate ) |
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.
This property was introduced in Qt Mobility 1.1.
Access functions:
QPoint | offset () const |
void | setOffset ( const QPoint & offset ) |
Notifier signal:
void | offsetChanged ( const QPoint & offset ) |
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.
This property was introduced in Qt Mobility 1.1.
Access functions:
QPixmap | pixmap () const |
void | setPixmap ( const QPixmap & pixmap ) |
Notifier signal:
void | pixmapChanged ( const QPixmap & pixmap ) |
Constructs a new pixmap object.
Constructs a new pixmap object which will draw the pixmap pixmap at an offset of offset pixels from the coordinate coordinate.
Destroys this pixmap object.
This signal is emitted when the coordinate at which the pixmap should be drawn has changed.
The new value will be coordinate.
This function was introduced in Qt Mobility 1.1.
This signal is emitted when the on-screen offset from the coordinate at which this pixmap object should be drawn has changed.
The new value will be offset.
This function was introduced in Qt Mobility 1.1.
This signal is emitted when the pixmap associated with this pixmap object has changed.
The new value will be pixmap.
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