QgsMapToolIdentifyFeature class
The QgsMapToolIdentifyFeature class is a map tool to identify a feature on a chosen layer.
Contents
Once the map tool is enable, user can click on the map canvas to identify a feature. A signal will then be emitted.
Base classes
- class QgsMapToolIdentify
- Map tool for identifying features in layers.
Constructors, destructors, conversion operators
- QgsMapToolIdentifyFeature(QgsMapCanvas* canvas, QgsVectorLayer* vl = nullptr)
- QgsMapToolIdentifyFeature is a map tool to identify a feature on a chosen layer.
Public functions
- void canvasReleaseEvent(QgsMapMouseEvent* e) override
- Mouse release event for overriding. Default implementation does nothing.
- void setLayer(QgsVectorLayer* vl)
- change the layer used by the map tool to identify
Protected functions
- void keyPressEvent(QKeyEvent* e) override
- Key event for overriding. Default implementation does nothing.
Function documentation
QgsMapToolIdentifyFeature:: QgsMapToolIdentifyFeature(QgsMapCanvas* canvas,
QgsVectorLayer* vl = nullptr)
QgsMapToolIdentifyFeature is a map tool to identify a feature on a chosen layer.
| Parameters | |
|---|---|
| canvas | the map canvas |
| vl | the vector layer. The map tool can be initialized without any layer and can be set afterward. |