Qt - How to copy file with QFile::copy using QFileDialog?
<pre><code>QString filename = QFileDialog::getOpenFileName(this,tr("Pdf files"), "C:/", "books(*.pdf)");
</code></pre>

<p>I want to get the selected file from <code>QFileDialog</code> and copy it to my desktop. Can I use something like this?</p>

<pre><code>QFile::copy(filename,"desktop");
</code></pre>