<?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[Special paths Dot and DotDot nor working anymore with Qt 6.8.0]]></title><description><![CDATA[<p dir="auto">Hello !</p>
<p dir="auto">I had a project built with Qt 6.6.3 and using relative paths <code>"."</code> and <code>".."</code> to get files from the executable directory.<br />
But after switching to Qt 6.8.0, the relative paths start from my user folder!</p>
<p dir="auto">I didn't find anything in the 6.7 and 6.8 changelogs. Is it a bug fixed in the 6.8 patches? Or is it a bug happening only when the project is started from Qt Creator?</p>
<p dir="auto">Thanks for your help!</p>
]]></description><link>https://forum.qt.io/topic/164390/special-paths-dot-and-dotdot-nor-working-anymore-with-qt-6.8.0</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 14:20:50 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164390.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Mar 2026 15:10:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Special paths Dot and DotDot nor working anymore with Qt 6.8.0 on Fri, 06 Mar 2026 15:17:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maluna34">@<bdi>Maluna34</bdi></a> said in <a href="/post/836890">Special paths Dot and DotDot nor working anymore with Qt 6.8.0</a>:</p>
<blockquote>
<p dir="auto">using relative paths "." and ".." to get files from the executable directory.</p>
</blockquote>
<p dir="auto">This is wrong. You should either use <a href="https://doc.qt.io/qt-6/resources.html" target="_blank" rel="noopener noreferrer nofollow ugc">Qt resources</a> or make sure it's absolute by e.g. using <a href="https://doc.qt.io/qt-6/qcoreapplication.html#applicationDirPath" target="_blank" rel="noopener noreferrer nofollow ugc">QCoreApplication::applicationDirPath()</a>.</p>
<p dir="auto">using a relative path is wrong because you can't be sure what the current working directory is. It might even change (e.g. by using the QFileOpenDialog from windows) or by starting it from another path.</p>
]]></description><link>https://forum.qt.io/post/836892</link><guid isPermaLink="true">https://forum.qt.io/post/836892</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 06 Mar 2026 15:17:27 GMT</pubDate></item><item><title><![CDATA[Reply to Special paths Dot and DotDot nor working anymore with Qt 6.8.0 on Mon, 09 Mar 2026 13:58:38 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for your help!<br />
Indeed, the bug shall have come from a side effect between the two versions, as this was not a reliable way to access resources.</p>
]]></description><link>https://forum.qt.io/post/836979</link><guid isPermaLink="true">https://forum.qt.io/post/836979</guid><dc:creator><![CDATA[Maluna34]]></dc:creator><pubDate>Mon, 09 Mar 2026 13:58:38 GMT</pubDate></item><item><title><![CDATA[Reply to Special paths Dot and DotDot nor working anymore with Qt 6.8.0 on Fri, 06 Mar 2026 15:17:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/maluna34">@<bdi>Maluna34</bdi></a> said in <a href="/post/836890">Special paths Dot and DotDot nor working anymore with Qt 6.8.0</a>:</p>
<blockquote>
<p dir="auto">using relative paths "." and ".." to get files from the executable directory.</p>
</blockquote>
<p dir="auto">This is wrong. You should either use <a href="https://doc.qt.io/qt-6/resources.html" target="_blank" rel="noopener noreferrer nofollow ugc">Qt resources</a> or make sure it's absolute by e.g. using <a href="https://doc.qt.io/qt-6/qcoreapplication.html#applicationDirPath" target="_blank" rel="noopener noreferrer nofollow ugc">QCoreApplication::applicationDirPath()</a>.</p>
<p dir="auto">using a relative path is wrong because you can't be sure what the current working directory is. It might even change (e.g. by using the QFileOpenDialog from windows) or by starting it from another path.</p>
]]></description><link>https://forum.qt.io/post/836892</link><guid isPermaLink="true">https://forum.qt.io/post/836892</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 06 Mar 2026 15:17:27 GMT</pubDate></item></channel></rss>