In a QGIS layer, I have selected some entities.

Is it possible to show these in a particular way using style definition using a "state" like $currentfeature or @atlas_featureid ?

enter image description here

The goal is to gather automatically only selected values in the composer map and attribute table and set composer map extents to the selection extent.

enter image description here

This would enable the user to simply select and print its data without caring much about printed map extent and printed attribute table synchronisation.


If you install Nathan Woodrow's "Expression Plus" plugin you're able to use a "isselected" function that can be useful to filter your table.

The syntax is the following :

isselected(layername), returning a boolean

| improve this answer | |
  • Nice, thanks! We should have this in core on 3.X – Nono Aug 2 '18 at 13:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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