<?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[How to insert double quotes in the contents of a QString?]]></title><description><![CDATA[<p dir="auto">I have an option in my GUI that I select a program I want to open and keep his path into a QString.<br />
To open it I need to insert double quotes because the prompt only opens so.<br />
How to insert double quotes in a QString?<br />
@ QProcess pr1;<br />
QStringList argss;<br />
argss &lt;&lt; "D:\example\progam1\temp\esseaqui" &lt;&lt; "-P" &lt;&lt; "<a href="http://pythoon2.py" target="_blank" rel="noopener noreferrer nofollow ugc">pythoon2.py</a>";<br />
pr1.start(_version249b, argss); //_version249b is the string that I want to insert double quotes in your content</p>
<pre><code>           @
</code></pre>
]]></description><link>https://forum.qt.io/topic/50297/how-to-insert-double-quotes-in-the-contents-of-a-qstring</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 14:08:09 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/50297.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Jan 2015 14:09:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to insert double quotes in the contents of a QString? on Tue, 20 Jan 2015 04:24:22 GMT]]></title><description><![CDATA[<p dir="auto">@<br />
QString word = "outside..."inside double quote"...outside";<br />
@<br />
or better more:<br />
@<br />
QString word = tr("outside..."inside my double quotes"...outside");<br />
@<br />
(tr() serve after for translation of everything string style inside tr() ).</p>
<p dir="auto">in your situation:<br />
@<br />
QProcess pr1;<br />
QStringList argss;<br />
argss &lt;&lt; ""D:\example\progam1\temp\esseaqui"" &lt;&lt; ""-P"" &lt;&lt; ""<a href="http://pythoon2.py" target="_blank" rel="noopener noreferrer nofollow ugc">pythoon2.py</a>"";<br />
pr1.start(_version249b, argss);<br />
@</p>
<p dir="auto">there is also some other way to add these doubles quote automatically after include datas in you QStringList... with QString::insert method at render time, or, for have it definitly, between the entri and the render by a foreach loop with this insertion inside... there is many ideas for do it...<br />
depend of what you really need.</p>
]]></description><link>https://forum.qt.io/post/258218</link><guid isPermaLink="true">https://forum.qt.io/post/258218</guid><dc:creator><![CDATA[jerome_isAviable]]></dc:creator><pubDate>Tue, 20 Jan 2015 04:24:22 GMT</pubDate></item><item><title><![CDATA[Reply to How to insert double quotes in the contents of a QString? on Tue, 20 Jan 2015 01:37:30 GMT]]></title><description><![CDATA[<p dir="auto">ok, but how I add that in my string?</p>
]]></description><link>https://forum.qt.io/post/258207</link><guid isPermaLink="true">https://forum.qt.io/post/258207</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Tue, 20 Jan 2015 01:37:30 GMT</pubDate></item><item><title><![CDATA[Reply to How to insert double quotes in the contents of a QString? on Mon, 19 Jan 2015 23:20:02 GMT]]></title><description><![CDATA[<p dir="auto">" and \\ to have a a double quote and a double backslash in your string.</p>
]]></description><link>https://forum.qt.io/post/258197</link><guid isPermaLink="true">https://forum.qt.io/post/258197</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 19 Jan 2015 23:20:02 GMT</pubDate></item><item><title><![CDATA[Reply to How to insert double quotes in the contents of a QString? on Mon, 19 Jan 2015 19:20:52 GMT]]></title><description><![CDATA[<p dir="auto">I just found out I need backslash too. So I need to know the two (quotes and backslashes)</p>
]]></description><link>https://forum.qt.io/post/258171</link><guid isPermaLink="true">https://forum.qt.io/post/258171</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Mon, 19 Jan 2015 19:20:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to insert double quotes in the contents of a QString? on Mon, 19 Jan 2015 14:32:03 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Do you mean double quotes or backslashes ?</p>
]]></description><link>https://forum.qt.io/post/258140</link><guid isPermaLink="true">https://forum.qt.io/post/258140</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 19 Jan 2015 14:32:03 GMT</pubDate></item></channel></rss>