1

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 Answers1

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

Aquamarine
  • 1,176
  • 5
  • 12
  • 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? – Philip Viljoen May 07 '22 at 15:22
  • I'm not completely sure if the edits to the answer I did will work for you. – Aquamarine May 07 '22 at 16:30
  • this is an answer to your question: https://gis.stackexchange.com/a/363879/7849 – PieterB Nov 29 '22 at 13:51