[Qgis-developer] Prevent delete selected features

Enrico Fiore enricofiore at libero.it
Mon Jun 15 05:42:26 PDT 2015


Hi,
I need to avoid features deletion in some layers both from button and from keyboard. 

How can I perform this in pyqgis?

I have disabled the button with these comand:
    iface.actionDeleteSelected().setDisabled(True)

but the features can be deleted with the backspace or Del.

Enrico




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20150615/eab1c352/attachment.html>


More information about the Qgis-developer mailing list