2

Here are my labels untouched

enter image description here

Now when i change to all lowercase

enter image description here

You see that it changes

enter image description here

However for type case i want to capitalize first letter

enter image description here

It shows that it made it everything capitalized

enter image description here

The default lettering of the values are all capital.

I tried the expression below. "Street" is the name of the field. It even acknowledged the output preview and changed it how i would have liked to ideally.

title("Street")

enter image description here

2

A reasonable person might expect the setting "Capitalize first letter" to convert the label to title case.

  • lower case
  • UPPER CASE
  • Title Case (first letter of each word capitalized, remaining letters lowercase)

However, it seems that "Capitalize first letter" does exactly what it says, and no more. It doesn't change the other letters to lowercase.

enter image description here

This isn't technically a bug. But it will definitely confuse many QGIS users. I suggest making a feature request to add title case as an option. It will be low priority, but it seems easy to implement, so it may not take too long.


The current workaround, as you discovered, is to use the title() function.

enter image description here

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.