Hello QGIS developers,
I am developing a QGIS plugin and need to observe point placements while the user is constructing a new geometry, before the feature is created/committed. From Python I only see signals after the feature is created. Are there hooks, events, or a recommended pattern to capture each vertex as it is added during digitizing?
As a workaround I subclassed the standard digitizing tool and built a custom drawing tool that emits per-vertex events. It works but feels like a workaround. Is there a more elegant or idiomatic approach in QGIS/PyQGIS to achieve this? Any API pointers or example code would help.
Environment:
QGIS version: 3.44
OS: Ubuntu 24.04.3 LTS
Python version: 3.12
Use case:
Why I need pre-creation point events: to send points to another app
Expected behavior: when user clicked to add geometry capture all clics and at least logs the info
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
