<?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[qc20.0 cannot open the file in console output]]></title><description><![CDATA[<p dir="auto">here 5.15+qc8.0 and 6.8+qc8.0:<br />
test code:<br />
qDebug().nospace() &lt;&lt; "\033[34m" &lt;&lt; "my info, file://"&lt;&lt;<strong>FILE</strong>&lt;&lt;":"&lt;&lt;<strong>LINE</strong>&lt;&lt;" good\033[0m";<br />
<img src="https://ddgobkiprc33d.cloudfront.net/482fb75a-62a7-4870-b767-3cedf70dd525.gif" alt="录制_2026_08_10_14_50_29_20.gif" class=" img-fluid img-markdown" /></p>
<p dir="auto">but same code fail in qc20.0+5.15:<br />
<img src="https://ddgobkiprc33d.cloudfront.net/51c0620a-1594-4354-833d-28ad896006c4.gif" alt="录制_2026_08_10_14_52_49_652.gif" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.qt.io/topic/164992/qc20.0-cannot-open-the-file-in-console-output</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 11:33:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164992.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Aug 2026 06:57:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Fri, 21 Aug 2026 06:39:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/simonschroeder">@<bdi>SimonSchroeder</bdi></a><br />
The question is why the change in behaviour:</p>
<blockquote>
<p dir="auto">but qc18 is ok, qc20 cannot open the same FILE MACRO</p>
</blockquote>
<p dir="auto">Your statements are true, but why does behaviour apparently differ from Creator 18 to 20?</p>
]]></description><link>https://forum.qt.io/post/839807</link><guid isPermaLink="true">https://forum.qt.io/post/839807</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Fri, 21 Aug 2026 06:39:00 GMT</pubDate></item><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Fri, 21 Aug 2026 06:27:18 GMT]]></title><description><![CDATA[<p dir="auto">I agree that <code>..\main.cpp</code> looks a little suspicious. The question is, what is your directory structure? Where is your compiled executable located? And what is the working directory when executing the program? The two have to be the same for this to work.</p>
]]></description><link>https://forum.qt.io/post/839805</link><guid isPermaLink="true">https://forum.qt.io/post/839805</guid><dc:creator><![CDATA[SimonSchroeder]]></dc:creator><pubDate>Fri, 21 Aug 2026 06:27:18 GMT</pubDate></item><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Thu, 20 Aug 2026 17:50:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/qttester">@<bdi>QtTester</bdi></a><br />
After you have tried <a class="plugin-mentions-user plugin-mentions-a" href="/user/hskoglund">@<bdi>hskoglund</bdi></a>'s suggestions.</p>
<p dir="auto">Forget for now about <code>__FILE__</code>, it's not relevant in itself.  By the time you click on a string in the Output window the fact that it came from a macro in C++ has no effect. You say there is a change in behaviour.  You say <code>file://..\main.cpp</code> used to work.  For now just output a literal string for whatever the absolute path of a file is.  See whether that works.  If it does not the problem is in clicking any link.  If that works, figure out what relative path (if any) works.  If that has changed then maybe QtC 20 is sitting in a different directory from before.  Whatever you will know where the difference comes from.</p>
]]></description><link>https://forum.qt.io/post/839801</link><guid isPermaLink="true">https://forum.qt.io/post/839801</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Thu, 20 Aug 2026 17:50:16 GMT</pubDate></item><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Thu, 20 Aug 2026 15:31:46 GMT]]></title><description><![CDATA[<p dir="auto">I think Qt Creator 20 works just fine with VS2022, the behavior you're seeing with the <strong>FILE</strong> macro is a bit of lottery (50/50 chance of success). To even out the odds:<br />
try open just 1 app in Qt Creator (not 2) and bulld in release mode (not a mix of debug and release).</p>
]]></description><link>https://forum.qt.io/post/839800</link><guid isPermaLink="true">https://forum.qt.io/post/839800</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Thu, 20 Aug 2026 15:31:46 GMT</pubDate></item><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Thu, 20 Aug 2026 06:28:44 GMT]]></title><description><![CDATA[<p dir="auto">so it's definitely qtcreator20 does not support vs2022</p>
]]></description><link>https://forum.qt.io/post/839796</link><guid isPermaLink="true">https://forum.qt.io/post/839796</guid><dc:creator><![CDATA[QtTester]]></dc:creator><pubDate>Thu, 20 Aug 2026 06:28:44 GMT</pubDate></item><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Thu, 20 Aug 2026 05:57:02 GMT]]></title><description><![CDATA[<p dir="auto">I don'y think so (Windows filenames are the same in lower and upper case).</p>
]]></description><link>https://forum.qt.io/post/839795</link><guid isPermaLink="true">https://forum.qt.io/post/839795</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Thu, 20 Aug 2026 05:57:02 GMT</pubDate></item><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Thu, 20 Aug 2026 01:47:12 GMT]]></title><description><![CDATA[<p dir="auto">in <a href="https://learn.microsoft.com/en-us/cpp/build/reference/fc-full-path-of-source-code-file-in-diagnostics?view=msvc-170" target="_blank" rel="noopener noreferrer nofollow ugc">https://learn.microsoft.com/en-us/cpp/build/reference/fc-full-path-of-source-code-file-in-diagnostics?view=msvc-170</a><br />
it says:<br />
In Visual Studio 2017 and earlier versions, /FC outputs full paths in lower case. Starting in Visual Studio 2019, /FC uses the same casing as the file system for full paths.</p>
<p dir="auto">it's because the upper case?</p>
]]></description><link>https://forum.qt.io/post/839794</link><guid isPermaLink="true">https://forum.qt.io/post/839794</guid><dc:creator><![CDATA[QtTester]]></dc:creator><pubDate>Thu, 20 Aug 2026 01:47:12 GMT</pubDate></item><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Thu, 20 Aug 2026 01:37:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hskoglund">@<bdi>hskoglund</bdi></a> but qc18 is ok, qc20 cannot open the same <strong>FILE</strong> MACRO</p>
]]></description><link>https://forum.qt.io/post/839793</link><guid isPermaLink="true">https://forum.qt.io/post/839793</guid><dc:creator><![CDATA[QtTester]]></dc:creator><pubDate>Thu, 20 Aug 2026 01:37:20 GMT</pubDate></item><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Tue, 11 Aug 2026 02:02:11 GMT]]></title><description><![CDATA[<p dir="auto">Hi, I think  the <strong>FILE</strong> macro is not the best way to find your main.cpp file since it usually skips giving you the full path to the file. For the MSVC compiler you can try <a href="https://learn.microsoft.com/en-us/cpp/build/reference/fc-full-path-of-source-code-file-in-diagnostics?view=msvc-170" target="_blank" rel="noopener noreferrer nofollow ugc">the /FC compile switch</a></p>
]]></description><link>https://forum.qt.io/post/839647</link><guid isPermaLink="true">https://forum.qt.io/post/839647</guid><dc:creator><![CDATA[hskoglund]]></dc:creator><pubDate>Tue, 11 Aug 2026 02:02:11 GMT</pubDate></item><item><title><![CDATA[Reply to qc20.0 cannot open the file in console output on Tue, 11 Aug 2026 00:47:45 GMT]]></title><description><![CDATA[<p dir="auto">no one has this problem?</p>
]]></description><link>https://forum.qt.io/post/839646</link><guid isPermaLink="true">https://forum.qt.io/post/839646</guid><dc:creator><![CDATA[QtTester]]></dc:creator><pubDate>Tue, 11 Aug 2026 00:47:45 GMT</pubDate></item></channel></rss>