<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[solved. thank you!] upper case]]></title><description><![CDATA[<p dir="auto">how do you know if a word (QString) begins with an upper case letter and how to make this first letter to be upper?</p>
]]></description><link>https://forum.qt.io/topic/9456/solved-thank-you-upper-case</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 23:23:06 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/9456.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Sep 2011 12:19:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [solved. thank you!] upper case on Tue, 13 Sep 2011 13:43:02 GMT]]></title><description><![CDATA[<p dir="auto">right! ;)</p>
]]></description><link>https://forum.qt.io/post/109009</link><guid isPermaLink="true">https://forum.qt.io/post/109009</guid><dc:creator><![CDATA[spode]]></dc:creator><pubDate>Tue, 13 Sep 2011 13:43:02 GMT</pubDate></item><item><title><![CDATA[Reply to [solved. thank you!] upper case on Tue, 13 Sep 2011 13:33:00 GMT]]></title><description><![CDATA[<p dir="auto">@<br />
QString parola = QLatin1String("ciao");<br />
parola[0] = <a href="http://parola.at" target="_blank" rel="noopener noreferrer nofollow ugc">parola.at</a>(0).toTitleCase();<br />
@</p>
]]></description><link>https://forum.qt.io/post/109007</link><guid isPermaLink="true">https://forum.qt.io/post/109007</guid><dc:creator><![CDATA[tobias.hunger]]></dc:creator><pubDate>Tue, 13 Sep 2011 13:33:00 GMT</pubDate></item><item><title><![CDATA[Reply to [solved. thank you!] upper case on Tue, 13 Sep 2011 13:29:04 GMT]]></title><description><![CDATA[<p dir="auto">i solved with<br />
@<br />
QString parola = "ciao";<br />
parola.replace(0, 1, parola[0].toUpper());<br />
//returns Ciao<br />
@</p>
]]></description><link>https://forum.qt.io/post/109006</link><guid isPermaLink="true">https://forum.qt.io/post/109006</guid><dc:creator><![CDATA[spode]]></dc:creator><pubDate>Tue, 13 Sep 2011 13:29:04 GMT</pubDate></item><item><title><![CDATA[Reply to [solved. thank you!] upper case on Tue, 13 Sep 2011 13:21:17 GMT]]></title><description><![CDATA[<p dir="auto">&lt;nitpick&gt;<br />
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).</p>
<p dir="auto">Uppercasing that gives you "01C7;LATIN CAPITAL LETTER LJ" (LJ).</p>
<p dir="auto">So that is not what you want.</p>
<p dir="auto">You want "01C8;LATIN CAPITAL LETTER L WITH SMALL LETTER J" (Lj), which is the Titlecase. So you should use toTitleCase() instead of toUpper().<br />
&lt;/nitpick&gt;</p>
]]></description><link>https://forum.qt.io/post/109005</link><guid isPermaLink="true">https://forum.qt.io/post/109005</guid><dc:creator><![CDATA[tobias.hunger]]></dc:creator><pubDate>Tue, 13 Sep 2011 13:21:17 GMT</pubDate></item><item><title><![CDATA[Reply to [solved. thank you!] upper case on Tue, 13 Sep 2011 12:29:26 GMT]]></title><description><![CDATA[<p dir="auto">via Qt Centre forum (I not checked this)<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/qstring">@<bdi>QString</bdi></a> capitalize(const QString &amp;str)<br />
{<br />
QString tmp = str;<br />
// if you want to ensure all other letters are lowercase:<br />
tmp = tmp.toLower();<br />
tmp[0] = str[0].toUpper();<br />
return tmp;<br />
}@</p>
]]></description><link>https://forum.qt.io/post/108989</link><guid isPermaLink="true">https://forum.qt.io/post/108989</guid><dc:creator><![CDATA[vsorokin]]></dc:creator><pubDate>Tue, 13 Sep 2011 12:29:26 GMT</pubDate></item></channel></rss>