Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm starting using QGIS to make a project for university and I am with a problem on configuring legends on Print Composer.

The thing is I want the text of my legend to appear after the symbols/coloured rectangles and not above. My legend doesn't fit in the space because I have 2 lines for each layer when I could have just one. Is there any way I can solve this?

enter image description here

share|improve this question
Why do you have one layer for each province? If you would merge them into one layer, your problem would go away. – underdark Dec 6 '12 at 11:55
thanks for your suggestion underdark but how can I merge all this layers into a single one and still be able to color them? – Tiago Brandão Dec 6 '12 at 12:13
You can use the ID (or any other data field) as a key for the categorised symbology style or the rule-based style if you need to manually specify the colors for each province. Not sure if QGIS can already read the desired style from a data column, which could make the second case easier. – lynxlynxlynx Dec 6 '12 at 12:44
up vote 4 down vote accepted

Ordinarily I would go with Underdark's suggestion.

However, this issue is common for other situations where it is not relevant or possible to have all the data in one layer, so the question is worth a quick 'how to'. Navigate to the Legend Items tab and...

  • select a layer
  • click the pencil edit button and delete everything in the layer's item text popup so you have no layer heading at all.
  • click the + icon to expand your layer and select the element you want to label (below the level of the layer)
  • click the pencil icon again and type in your label.

QGIS will make your label follow your patch and it automatically 'packs' the patchs when you don't have any layer heading.

EDIT (before and after screenshots): before after

share|improve this answer
i followed all the steps but the label still appears above the symbol :/ – Tiago Brandão Dec 6 '12 at 12:14
Then you didn't delete the Layer's label. This is a technique I use a lot for this sort of situation and it works well. – MappaGnosis Dec 6 '12 at 12:20
All the steps you say here are made on the Print Composer, right? – Tiago Brandão Dec 6 '12 at 12:27
Yes - see my edit to my original post. I have added 'before' and 'after' screen shots that will hopefully clear it up. You delete all the 'item text' for each layer. Then press the little plus and select an item from the layer (in this case there will only be one per layer). Click the pencil icon again and add text (note this is below the level of the layer heading which MUST be completely blank for this to work). – MappaGnosis Dec 6 '12 at 12:31
Ok i solved it. The key was "note this is below the level of the layer heading". Thanks a lot! – Tiago Brandão Dec 6 '12 at 12:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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