How to label vector layer with my own values that aren't stored in the attribute fields?

  • is there any 'connection' between both? Eg. a common ID? – PieterB Apr 2 at 11:46
  • In a side note: You should consider updating your QGIS, the current LTR is 3.4. – Erik Apr 2 at 11:48
  • 2
    are you using the same label for all feature ? if not why not storing in the value in the attribute table ? Please provide more details in order to get meaningful answer – J.R Apr 2 at 11:51
  • Same label for all features. I have temporary layer which I want to label with value got by another part of code and I want to avoid manipulations with attributes if it's possible. Is there a way to do it with layer.setCustomProperty() or something similar? Can't get QGIS v3 cause I forced to use RHEL. – Wolf Schulz Apr 3 at 10:51

Your Answer

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

Browse other questions tagged or ask your own question.