When I add a legend in a map composer in QGIS, all layers that are defined in the project will be shown in the legend, no matter if they are set to be displayed or not, I also have some background maps I would like to never show up in the legend.
So: 1) Is there a way to tell Qgis not to list layers that are not displayed in the legend? 2) Is there any way to tell Qgis to never list a layer in a legend?
(In my case, I would like to never ever show the background layers or the non-displayed layers the legend)
(using Qgis 3, but have had the same issue for quite a few 2.x versions as well)