<?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[Help for QString formatting]]></title><description><![CDATA[<p dir="auto">Hi to all, i've need help for string formatting.<br />
I'm writing some code to talk with SIM800C...and all works pretty well. But now i've need to send some sms to a list of people so i've need to change this  fixed QString:</p>
<pre><code>QString comando= "at+cmgs=\"+3933345824\"\r";
</code></pre>
<p dir="auto">to some that can works with a list of users. So for example</p>
<pre><code>QString comando= "at+cmgs=\"myUsersList-&gt;at(myIntIndex)\"\r";
</code></pre>
<p dir="auto">But i've got some errors i think for the escape sequence or for the  "  and other symbols that i'v need...i am not an expert about this.<br />
Thanks a lot.</p>
]]></description><link>https://forum.qt.io/topic/132352/help-for-qstring-formatting</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 02:32:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/132352.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Nov 2021 22:58:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Help for QString formatting on Sun, 28 Nov 2021 10:40:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/eyllanesc">@<bdi>eyllanesc</bdi></a> said in <a href="/post/692058">Help for QString formatting</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/markolino_it">@<bdi>markolino_it</bdi></a> Use <a href="https://doc.qt.io/qt-5/qstring.html#arg" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qstring.html#arg</a></p>
</blockquote>
<p dir="auto">Thanks a lot.<br />
I share the solution :</p>
<pre><code>QString comando= QString("at+cmgs=\"%1\"\r").arg(myList-&gt;at(myIndex));
</code></pre>
<p dir="auto">I am not familiar with c++ thanks a lot !</p>
]]></description><link>https://forum.qt.io/post/692074</link><guid isPermaLink="true">https://forum.qt.io/post/692074</guid><dc:creator><![CDATA[markolino_it]]></dc:creator><pubDate>Sun, 28 Nov 2021 10:40:18 GMT</pubDate></item><item><title><![CDATA[Reply to Help for QString formatting on Sat, 27 Nov 2021 23:59:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/markolino_it">@<bdi>markolino_it</bdi></a> Use <a href="https://doc.qt.io/qt-5/qstring.html#arg" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qstring.html#arg</a></p>
]]></description><link>https://forum.qt.io/post/692058</link><guid isPermaLink="true">https://forum.qt.io/post/692058</guid><dc:creator><![CDATA[eyllanesc]]></dc:creator><pubDate>Sat, 27 Nov 2021 23:59:52 GMT</pubDate></item></channel></rss>