title: Removing extension of a file name in Qt
body: <p>I'm using Qt to get a file name from the user:</p>
  
  <pre><code>QString fileName = QFileDialog::getOpenFileName(this,tr("Select an image file"),"d:\\",tr("Image files(*.tiff *.tif )"));
  </code></pre>
  
  <p>It works, but I need the file name <em>without its extension</em>, is it possible in Qt?? 
  whenn I try :</p>
  
  <pre><code>QString f = QFileInfo(fileName).fileName();
  </code></pre>
  
  <p><code>f</code> is like  <strong>"filename.tif"</strong>, but I want it to be <strong>"filename"</strong>.</p>