I have a selected feature in the project that is symbolised differently. I can see it in the print layout, but the is_selected expression returns a false. I need to label only this feature in a text box.

enter image description here

1 Answer 1


If you use is_selected as part of an if statement, it might do what you need. enter image description here

If you want to see the other labels also - have a 2nd layer with labels, no symbols. Set the main (is selected test) label placement to high priority. This is what you will get: enter image description here

  • It works in the project labeling. In my case however, all labels must show. I need a text box in the print layout that must only show the selected features' attribute/s. I tried the same expression under 'insert/edit expression' button, but no luck. Must I use it in combination with a print command? May 7, 2022 at 15:22
  • I'm not completely sure if the edits to the answer I did will work for you.
    – Aquamarine
    May 7, 2022 at 16:30
  • this is an answer to your question: gis.stackexchange.com/a/363879/7849
    – PieterB
    Nov 29, 2022 at 13:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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