QGIS – Fill Simple Line Polygon with Color When Selected

featurespolygonqgisselectstyle

I have a polygon vector layer with Simple line symbology.
When I select one from Attribute table, QGIS change the boundary color in yellow, but I have difficulties to find it easily between many polygons. I need every time to click on "Zoom to the selected rows".
Is there a way to fill with color a polygon when it is selected as ArcGIS software?

Best Answer

  1. Create a new symbol layer of Geometry Generator and Simple Fill type with this expression:

    case when is_selected() then $geometry end

    This creates a new style that is used for selected polygons only.

  2. To change the color of selected features, go to Menu Settings > Options > Tab Canvas&Legends > Selection Color.

Related Question