4

QGIS 2.18.1 - I've used data-defined labelling (X,Y,Rotation fields) with earlier versions of QGIS. I can move and rotate labels OK with 2.18.1 but cannot change the label text. When I click on the 'Change label' button and select a label on the canvas, the Layer properties screen comes up, but all the fields are greyed out and hence uneditable.

Has anyone else had this problem?

  • In QGIS 2.18.2, it is possible to change the text of the label. Although the fields such as Display, Font etc are greyed out. You can also use the Layer styling dock by clicking the Layer Labelling Options from the toolbar or the left-most icon at the top of the Layers Panel. – Joseph Jan 9 '17 at 11:14
  • Thank you for your reply, Joseph. However when I select Layer Labelling Options, I get a dialog screen which applies to ALL labels in that layer. I only want to change one label. Am I missing something? – Bill C Jan 9 '17 at 21:21
  • Perhaps a bug? Try QGIS 2.18.2 and see if the problem still persists =) – Joseph Jan 10 '17 at 10:01
  • Installed 2.18.2 but nothing changed. – Bill C Jan 10 '17 at 22:09
2

Works ok here (2.18.2). Some things to check: - Make sure your layer is set to label using a field alone and not an expression based on a field. - Make sure your label text field is editable. Try changing values in it in the attribute table and see if they stick when you save the layer.

  • The label IS based on an expression. Does that mean I can't change it by using the data-defined tool? Installed 2.18.2 but still no go. Am able to effectively change it via the attribute table though. – Bill C Jan 10 '17 at 22:08
  • Yes - if it's an expression it will be read only in that dialog. You could post a feature request to expose all fields used by the expression in that dialog. – ndawson Jan 10 '17 at 22:43
  • Not sure I am QGIS-skilled enough to lodge a request. Perhaps someone who would know how to word it might take it up? – Bill C Jan 12 '17 at 2:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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