[GIS] Auto update QGIS Legend

legendprint-composerprintingqgisqgis-print-layouts

I have a project with many layers. Some layers are objects of interest while other layers are custom layers. Simplified example:

  • Streets (polygon)
  • Buildings (polygon)
  • Street names (point)

I created a print layout and now I want to add a dynamic legend. The legend should update automatically if I change the color of a layer, but I do not want to see some layers in the legends. I want only the polygons of the streets and houses, but not the street names point in the legend.

If I remove the check in "update automatically" in order to remove or add items the legend loses the update option. So if I change the color of the roads the legend shows the old color.

How can I update the legend with layer style changes, without losing my changes to which layers are displayed?

Best Answer

Uncheck 'auto-update' as indicated in the comments to remove the unwanted layer(s) from the legend. After you make any changes to styles, press "Refresh view" (blue 'recycle' button) in the layout screen and your changes will now appear in both the map and the legend without adding the unwanted layer back into the legend.