23 , mCadDockWidget( cadDockWidget )
48 if ( e->button() == Qt::RightButton )
50 mCadDockWidget->
clear();
111 void QgsMapToolAdvancedDigitizing::cadPointChanged(
const QgsPointXY &point )
114 QMouseEvent *ev =
new QMouseEvent( QEvent::MouseMove,
mCanvas->
mouseLastXY(), Qt::NoButton, Qt::NoButton, Qt::NoModifier );
115 qApp->postEvent(
mCanvas->viewport(), ev );
A class to represent a 2D point.
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
Map canvas is a class for displaying all GIS data types on a canvas.
QPoint mouseLastXY()
returns last position of mouse cursor
QgsPointXY mapPoint() const
mapPoint returns the point in coordinates
QgsPointXY snapPoint()
snapPoint will snap the points using the map canvas snapping utils configuration