A maptip is a class to display a tip on a map canvas when a mouse is hovered over a feature.
More...
#include <qgsmaptip.h>
Detailed Description
A maptip is a class to display a tip on a map canvas when a mouse is hovered over a feature.
Constructor & Destructor Documentation
QgsMapTip::~QgsMapTip |
( |
| ) |
|
|
virtual |
Member Function Documentation
Clear the current maptip if it exists.
- Parameters
-
mpMapCanvas | the canvas from which the tip should be cleared. |
Show a maptip at a given point on the map canvas.
- Parameters
-
thepLayer | a qgis vector map layer pointer that will be used to provide the attribute data for the map tip. |
theMapPosition | a reference to the position of the cursor in map coordinatess. |
thePixelPosition | a reference to the position of the cursor in pixel coordinates. |
mpMapCanvas | a map canvas on which the tip is drawn |
The documentation for this class was generated from the following files: