title: How to change file's location with QT Dialog File
body: <p>I am beginner to QT and trying to change a file's location with a simple interface. Thanks to tutorials, I have managed to write a code that helps user to select a file, but I couldn't figure out how i can change the selected file's location. My code is below:</p>
  
  <pre><code>void MainWindow::on_pushButton_clicked()
  {
      QString filename=QFileDialog::getOpenFileName(
          this,
          tr("Open File"),
          "C://",
          "Text File(*.txt)"    
      );    
  }
  </code></pre>
  
  <p>Now this code selects the file, how can I know let this file to move for example to C://Users ?
  Thank you for help</p>
  
  <p>I couldn't use Qdir:rename, how can use that with my code?</p>