Skip to main content
added 66 characters in body
Source Link
Nathan W
  • 35k
  • 5
  • 99
  • 148

The signal QgsVectorLayer.featureAdded( QgsFeatureId fid ) is emitted whenever a new feature is added to the layer.

If you have to group the count by edit sessions you can also connect to the signals editingStarted and editingStopped.

Use like:

layer.featureAdded.connect(yourhandlermethod)

The signal QgsVectorLayer.featureAdded( QgsFeatureId fid ) is emitted whenever a new feature is added to the layer.

If you have to group the count by edit sessions you can also connect to the signals editingStarted and editingStopped.

The signal QgsVectorLayer.featureAdded( QgsFeatureId fid ) is emitted whenever a new feature is added to the layer.

If you have to group the count by edit sessions you can also connect to the signals editingStarted and editingStopped.

Use like:

layer.featureAdded.connect(yourhandlermethod)
Source Link
Matthias Kuhn
  • 28.2k
  • 3
  • 89
  • 130

The signal QgsVectorLayer.featureAdded( QgsFeatureId fid ) is emitted whenever a new feature is added to the layer.

If you have to group the count by edit sessions you can also connect to the signals editingStarted and editingStopped.