<?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[SetCurrentWorkingDirectory how to set it]]></title><description><![CDATA[<p dir="auto">I want to set my current working directory as something else..Not from where  I launched the application. From where I am loading my model through file dialog that should be my current working directory. How can I set it. Please advice.</p>
]]></description><link>https://forum.qt.io/topic/21237/setcurrentworkingdirectory-how-to-set-it</link><generator>RSS for Node</generator><lastBuildDate>Tue, 04 Aug 2026 22:10:03 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/21237.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Nov 2012 07:44:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to SetCurrentWorkingDirectory how to set it on Fri, 09 Nov 2012 08:38:50 GMT]]></title><description><![CDATA[<p dir="auto">Hello appollosputnik<br />
Usually you do not do such a thing with QDir, but if you are to change current working directory, I don't think you can do that from within of an application.</p>
<p dir="auto">The only way I know to do this is to change the working directory in the IDE (visual studio: Project Properties -&gt; Configuration Properties -&gt; Debugging -&gt; Working Directory)</p>
<p dir="auto">You may also want to look at following QCoreApplication methods:<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/qstring">@<bdi>QString</bdi></a> applicationDirPath ()<br />
QString applicationFilePath ()@</p>
<p dir="auto">[edit]</p>
<p dir="auto">Ok, there is a much simpler way. Use following method to set current working dir:<br />
<a class="plugin-mentions-user plugin-mentions-a" href="/user/bool">@<bdi>bool</bdi></a> QDir::setCurrent ( const QString &amp; path ) [static]@</p>
]]></description><link>https://forum.qt.io/post/156437</link><guid isPermaLink="true">https://forum.qt.io/post/156437</guid><dc:creator><![CDATA[videl]]></dc:creator><pubDate>Fri, 09 Nov 2012 08:38:50 GMT</pubDate></item></channel></rss>