I want to add a feature to a polygon vector layer in QGIS.
And when I click on a button:
iface.setActiveLayer(myLayer) myLayer.startEditing() iface.actionAddFeature().trigger()
So when the button is clicked I can draw a polygon on the canvas. When I end the drawing the usual edit form appears.
Is there a way to prevent it from opening or to close it immediately? (I want to edit the attributes programmatically in doSomething).