Re: [Qgis-user] Trapping Kyb/Mouse events during a QGIS geometry edit process

2022-05-07 Thread Richard Duivenvoorde via Qgis-user

I'd start to look into the advanced digitizing tools code, or in some (older?) 
cad-like plugins (QAD is a pretty extensive one)? They often also show 
position/angle/whatever info?

The 'thing' you see during digitizing, is (I think) a QgsGeometryRubberBand

https://qgis.org/pyqgis/3.22/gui/QgsGeometryRubberBand.html#module-QgsGeometryRubberBand

That one has a lot of events

HTH,

Richard

On 5/7/22 10:46, Zoltan via Qgis-user wrote:

Hi Listers,
I'm looking for some pointers as where to start, or keywords to google or 
recipes to follow (if any).

I'm looking to trap kyb/mouse events whilst in the middle of a geometry edit.
If a suitable event is trapped, then to run a subroutine and then return to the 
edit process by either handing the edit process the same event or generating 
another event for the edit routine to continue the geometry edit with.

So I suppose my question is, is where do I insert such kyb/mse event filter.

Any pointers would be welcome.

Thanks in advance,
Zoltan



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Trapping Kyb/Mouse events during a QGIS geometry edit process

2022-05-07 Thread Zoltan via Qgis-user

Hi Listers,
I'm looking for some pointers as where to start, or keywords to google 
or recipes to follow (if any).


I'm looking to trap kyb/mouse events whilst in the middle of a geometry 
edit.
If a suitable event is trapped, then to run a subroutine and then return 
to the edit process by either handing the edit process the same event or 
generating another event for the edit routine to continue the geometry 
edit with.


So I suppose my question is, is where do I insert such kyb/mse event 
filter.


Any pointers would be welcome.

Thanks in advance,
Zoltan

--

=
Zoltan Szecsei GPrGISc 0031
Director, Geograph (Pty) Ltd.
GIS and Photogrammetric Services

Cape Town, South Africa.

Mobile: +27-83-6004028 (Signal, not WhatsApp)
www.geograph.co.za
=

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user