[solved. thank you!] upper case
QML and Qt Quick
6
Posts
3
Posters
22.9k
Views
1
Watching
-
<nitpick>
Actually that code is not correct since Unicode does have funny little chars like "01C9;LATIN SMALL LETTER LJ". That is one lowercase letter (lj).Uppercasing that gives you "01C7;LATIN CAPITAL LETTER LJ" (LJ).
So that is not what you want.
You want "01C8;LATIN CAPITAL LETTER L WITH SMALL LETTER J" (Lj), which is the Titlecase. So you should use toTitleCase() instead of toUpper().
</nitpick> -
@
QString parola = QLatin1String("ciao");
parola[0] = parola.at(0).toTitleCase();
@