Working on QGIS 3.4.13.

I have a vector line layer, there are rivers. I put a rule based symbology with two categories and different scale max / min for each category.

I want to put style for the name of each type of river. I configured my legend in vector layer properties (following those steps : https://docs.qgis.org/3.4/en/docs/user_manual/working_with_vector/vector_properties.html?highlight=l%C3%A9gende#legend-properties)

I also checked this : QGIS styling a legend

So at this point I have this in QGIS


and that in QGIS composer

enter image description here

But I would like to have my symbol AND my legend styling apparent, something like this : enter image description here

seen here : Placing the label style alongside the layer style within the legend - Arcmap 10

I also checked in QGIS 3.10.1, to see if there some more functions, apparently,no.

Any idea?

  • I think you've already found the workarounds that are out there. None of them are convenient. The one other suggestion I have is creating a "dummy" feature on your map in each of the layers, that are arranged in a way that looks like you want them in the legend. Then take screenshot and add it to the layout as an image. I know that's a really stupid workaround, but AFAIK there aren't any good solutions. Legends are definitely one of the weak points of QGIS.
    – csk
    Dec 17, 2019 at 17:12
  • thanks, for the tip, in last case i will do it, but it's in 19 x 3 = 37maps.... ;) Dec 17, 2019 at 19:03
  • How are you defining the categories? I just create a rule based styling for a line vector layer and the legend shows the lines type and colors: i.stack.imgur.com/Vmb0F.png Dec 18, 2019 at 1:51
  • I defined my categories with a a single and specific field, witch have only these two values, no problems with what. In your case, i would like to have "balvanera" in green up to the green line in my legend. Saludos a argentina, tengo el maté cerca mientras mapeando. Dec 18, 2019 at 7:04
  • :-) Gracias! Are you defining a Font Maker symbol in each category? Your legend seems like you have already the text and the line, but overlapping. Dec 18, 2019 at 9:09


Your Answer

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