The code written by Joseph answering to the question Features to stay selected by default in QGIS?
layer = qgis.utils.iface.activeLayer() # Use active layer def select(featureAdded): layer.setSelectedFeatures([featureAdded]) layer.featureAdded.connect(select) # Connect "featureAdded" event to "select" function
works, but as soon as another feature is created, a new selection is made, resulting in only the new feature been selected.
I would like to create many features that stay selected, and that are added to the features already selected. I am not good enough with scripting to create a working code.