Hi there guys,

I have a bit of a problem here, I have the following code:

Qt Code:
  1. QFile file;
  2. QString newpath;
  3. newpath = QFileDialog::getExistingDirectory(this, tr("Open Directory"),
  4. "/", QFileDialog::ShowDirsOnly
  5. | QFileDialog::DontResolveSymlinks);
  6.  
  7. file.copy ( "/Applications/medadmin/sampledatabase", newpath);
To copy to clipboard, switch view to plain text mode 

The problem is: it doesn't copy the file to the place the user has selected it to.

What am I doing wrong? Any suggestions would be greatly appreciated;


Thanks in advance,

Nefastious