QgsMapToolEmitPoint class
A map tool that simply emits a point when clicking on the map.
Contents
Connecting a slot to its canvasClicked() signal will let you implement custom behavior for the passed in point.
Base classes
- class QgsMapTool
- Abstract base class for all map tools.
Constructors, destructors, conversion operators
- QgsMapToolEmitPoint(QgsMapCanvas* canvas)
- constructor
Public functions
- void canvasMoveEvent(QgsMapMouseEvent* e) override
- Mouse move event for overriding. Default implementation does nothing.
- void canvasPressEvent(QgsMapMouseEvent* e) override
- Mouse press event for overriding. Default implementation does nothing.
- void canvasReleaseEvent(QgsMapMouseEvent* e) override
- Mouse release event for overriding. Default implementation does nothing.
- auto flags() const -> Flags override
- Returns the flags for the map tool.
Signals
- void canvasClicked(const QgsPointXY& point, Qt::MouseButton button)
- signal emitted on canvas click
Function documentation
Flags QgsMapToolEmitPoint:: flags() const override
Returns the flags for the map tool.