4

How does one unselect features only from a certain layer?

I know there's the Deselect features from ALL layers button. But that's extreme. Is there a simple way to unselect features ONLY from (say) the current layer?

I can only think to ctrl+click everything, but this hardly seems effective.

Andre Silva
  • 10,259
  • 12
  • 54
  • 106
MichaelChirico
  • 657
  • 1
  • 5
  • 18
  • 2
    Open the attribute table and hit the unselect button. see http://qgis.spatialthoughts.com/2010/10/working-with-attribute-table-basic.html – Michael Stimson Feb 23 '15 at 04:21

2 Answers2

5

If you click in empty space (not touching any features of the current layer) with the select tool the current layer will drop it's selection.

Jakob
  • 7,471
  • 1
  • 23
  • 41
1

QGIS 3.0.2 answer.

Besides what Jakob said, with the layer selected open the TOC and hit the Deselect all button (or its shortcut Ctrl + Shift + A). See screenshot below:

enter image description here

Still in the TOC, if one wants to deselect only a few rows of a previous selection, hold Ctrl and click on rows to be deselected.


The following shows how to deselect with pyQGIS: Where is the QGIS API action for "deselect"?

Andre Silva
  • 10,259
  • 12
  • 54
  • 106