Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a one step operation to select all the records in a layer or dataset in QGIS? I can't find any reference to a single button, menu command or keyboard shortcut to achieve this.

I am aware of workarounds such as the following:

  • Selecting one record in the attribute table, inverting the selection and then reselecting the now unselected record
  • Running an advanced select with a static 'True' condition such as 1=1.
  • Using a marquee or other polygon select tool over the entire layer extent in the map window

I'm running QGIS 1.7.4 on Windows 7

share|improve this question
up vote 3 down vote accepted

Select all is available in SelectPlus menu. You might have to activate this plugin but it should be shipped with 1.7.0.

share|improve this answer
That's what I was looking for, and I see that I can set up a keyboard shortcut to the select all option once the plugin is loaded. It looks as though a lot of the other functions in the SelectPlus plugin have already been incorporated into the core code, so I will submit a feature request for Select All as well. – Andy Harfoot Mar 16 '12 at 9:47

Good question! I've not found a single button, but you can do the attribute table invert method without having to select one record first. At least with version 1.7.0.

I'm sure @underdark will come up with some alternative; but if not, it would be worth putting in a feature request.

share|improve this answer
I hadn't thought of inverting when no records were selected - thanks! – Andy Harfoot Mar 15 '12 at 11:44
it would be nice to have this as a feature..probably like right-click of a Layer in Table of Contents -> Select All – vinayan Mar 15 '12 at 11:45

i dont know whether one step action to select all feature or not but with following option , you can do it if you dont know...

Right Click your features file (Layer) and then select Open Attribute Table you can select all or with Invert Selection button you can select inverse feature too...

and in Advanced Search button you can do advanced selection...

share|improve this answer

If you want to do it from the Python QGIS API or create a dedicated button for this, you just need to reuse the selectAll() method from class QgsVectorLayer (don't know when it appeared).

Considering a vector layer selected in your layer tree, you can try iface.activeLayer().selectAll()

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.