<?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[CuteLogger iostream confusion [Solved]]]></title><description><![CDATA[<p dir="auto">Hi, is anyone using CuteLogger?</p>
<p dir="auto">I've got a problem/confusion with it and I can't find anywhere else to ask a question.</p>
<p dir="auto">If I use a embedded text line:</p>
<pre><code>LOG_INFO("Starting the application");
</code></pre>
<p dir="auto">everything is output in the way that I would expect.  If I us an iostream with just a quoted string the output is as I would expect:</p>
<pre><code>LOG_INFO() &lt;&lt; "Starting the application";
</code></pre>
<p dir="auto">But if I use a QString to output the text:</p>
<pre><code>LOG_INFO() &lt;&lt; QString("Power On");
</code></pre>
<p dir="auto">I get the quotes included in the output:</p>
<pre><code>"Power On"
</code></pre>
<p dir="auto">instead of:<br />
Power On</p>
<p dir="auto">Does anyone have any experience with this or any insight into what is going on?  I've tried these combinations with a QTextStream(stdout) iostream and I don't get the quotes so it appears to be something involving the CuteLogger, but I'm not enough of a C++ guru to know what might be happening.</p>
]]></description><link>https://forum.qt.io/topic/47341/cutelogger-iostream-confusion-solved</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 08:27:56 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/47341.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Oct 2014 17:48:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CuteLogger iostream confusion [Solved] on Fri, 24 Oct 2014 21:03:55 GMT]]></title><description><![CDATA[<p dir="auto">You're welcome !</p>
<p dir="auto">Since have pretty printing now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)</p>
]]></description><link>https://forum.qt.io/post/248939</link><guid isPermaLink="true">https://forum.qt.io/post/248939</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Fri, 24 Oct 2014 21:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to CuteLogger iostream confusion [Solved] on Fri, 24 Oct 2014 16:11:38 GMT]]></title><description><![CDATA[<p dir="auto">Thank you, that seems to do exactly what I need.</p>
]]></description><link>https://forum.qt.io/post/248918</link><guid isPermaLink="true">https://forum.qt.io/post/248918</guid><dc:creator><![CDATA[GregWilsonLindberg]]></dc:creator><pubDate>Fri, 24 Oct 2014 16:11:38 GMT</pubDate></item><item><title><![CDATA[Reply to CuteLogger iostream confusion [Solved] on Thu, 23 Oct 2014 22:42:23 GMT]]></title><description><![CDATA[<p dir="auto">You can surround your QString with qPrintable like this:</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qdebug">@<bdi>qDebug</bdi></a>() &lt;&lt; qPrintable(QString("Test"));@</p>
]]></description><link>https://forum.qt.io/post/248841</link><guid isPermaLink="true">https://forum.qt.io/post/248841</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Thu, 23 Oct 2014 22:42:23 GMT</pubDate></item><item><title><![CDATA[Reply to CuteLogger iostream confusion [Solved] on Thu, 23 Oct 2014 15:14:27 GMT]]></title><description><![CDATA[<p dir="auto">I'm using this under Qt 4.8 so I guess that means that I will just have to live with it for now.</p>
<p dir="auto">Thanks for the update.</p>
]]></description><link>https://forum.qt.io/post/248798</link><guid isPermaLink="true">https://forum.qt.io/post/248798</guid><dc:creator><![CDATA[GregWilsonLindberg]]></dc:creator><pubDate>Thu, 23 Oct 2014 15:14:27 GMT</pubDate></item><item><title><![CDATA[Reply to CuteLogger iostream confusion [Solved] on Wed, 22 Oct 2014 21:04:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">It's the normal behavior of QString when streamed to through qDebug, it outputs its content quoted.</p>
<p dir="auto">IIRC, there was something about a newly added option for that during the Categorized Logging presentation but I can't remember exactly how. Need to wait for the presentation to be published :)</p>
]]></description><link>https://forum.qt.io/post/248688</link><guid isPermaLink="true">https://forum.qt.io/post/248688</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 22 Oct 2014 21:04:11 GMT</pubDate></item></channel></rss>