title: How to save a file from Qrc to application directory
body: <p>I am using Qt 5.15.1.</p>
  <p>If I have a file in in my Qt app's qrc file, is it possible to save the file into application's directory so that I can use that file as a normal file on the file system?</p>
  <pre><code>QFile my_file(&quot;:/data/file.txt&quot;);
  QDir my_app_dir(QCoreApplication::applicationDirPath());
  </code></pre>
  <p>in above code, how can I save <code>my_file</code> into <code>my_app_dir</code>?</p>
  <p><strong>Environment:</strong><br />
  MacOS Catalina<br />
  Qt: Commercial version 5.15.1</p>