title: How to derive a new base file name in Qt?
body: <p>What is the best/most standard way to rename just the base file name of a given file path in Qt, while preserving the directory and extension? </p>
  
  <p>Is there a standard way to do that, or do I just use regular expressions?</p>
  
  <p>Let's say I have:</p>
  
  <pre><code>/home/user/myfile.png
  </code></pre>
  
  <p>And it would be changed to:</p>
  
  <pre><code>/home/user/myfile-modified.png
  </code></pre>