title: How to change the current working directory?
body: <p>I am working on a program that takes a file from a certain directory and copies it to the working directory of Qt to be read by my application. Right now, my current path is:</p>
  
  <blockquote>
    <p>/Users/softwareDev/Desktop/User1/build-viewer-Desktop_Qt_5_4_0_clang_64bit-Debug/viewer.app/Conents/MacOS/viewer</p>
  </blockquote>
  
  <p>To get this, I used:</p>
  
  <pre><code>qDebug() &lt;&lt; QDir::current().path();
  </code></pre>
  
  <p>and confirmed this directory with:</p>
  
  <pre><code>qDebug() &lt;&lt; QCoreApplication::applicationDirPath();
  </code></pre>
  
  <p>My question is, how would I go about changing this path?</p>