title: How do I find out which suffix user has chosen when using a QFileDialog?
body: <p>Well I'm using the following code to get the filename for a file that needs to be stored ..</p>
  
  <pre><code>QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"),"/home/user/MyDocs/",tr("JPG files (*.jpg);;BMP files (*.bmp);;PNG files (*.png)"));
  </code></pre>
  
  <p>I'm providing the user with a number of options regarding the file format in which the file is to be saved. However, the returned <code>QString</code> only gives me the prefix filename the user have chosen, not the suffix and thus I don't know which file format the user chose. How can I detect such a file format?</p>