6

As shown in the piucture, there is a bunch of multilines in one layer. I selected one feature from the attribute table and wanted to look at its contour. enter image description here

But the contour is overlapped by other features in this layer. enter image description here

I'm looking for an option to bring the selected feature to the top in the upper picture. I'm using QGIS 3.10

2 Answers 2

11

Use the Rule-based symbology. Add new rule with is_selected() filter.

enter image description here

Then change the symbol rendering order with Symbol Levels.... Set the highest value on your symbol with is_selected() filter.

enter image description here

This resutls to:

enter image description here

1
  • Thanks, I figured that the solution had something to do with filters/rule based styling. I especially posted that question as open as possible to get all kinds approaches. I was hoping for something like a hidden settings feature or system variable :)
    – Velester
    Apr 15, 2020 at 14:08
5

In the Symbology panel -> Layer Rendering section, enable Control feature rendering order. Add an expression with the value is_selected(), ensuring it is set to Ascending.

enter image description here

3
  • That's basically the same answer as the one posted and accepted two and a half year before!
    – Babel
    Nov 9, 2022 at 23:11
  • 2
    Disagree, it is more simple and allows you to keep existing symbology
    – TimD
    Nov 9, 2022 at 23:11
  • Anyone know how to do this for all layers by default? Or by default when layer is loaded?
    – Nataniel
    Sep 1, 2023 at 7:11

Your Answer

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

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