Nefastious
31st October 2009, 16:12
Hi there guys,
I have a bit of a problem here, I have the following code:
QFile file;
QString newpath;
newpath = QFileDialog::getExistingDirectory(this, tr("Open Directory"),
"/", QFileDialog::ShowDirsOnly
| QFileDialog::DontResolveSymlinks);
file.copy ( "/Applications/medadmin/sampledatabase", newpath);
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
I have a bit of a problem here, I have the following code:
QFile file;
QString newpath;
newpath = QFileDialog::getExistingDirectory(this, tr("Open Directory"),
"/", QFileDialog::ShowDirsOnly
| QFileDialog::DontResolveSymlinks);
file.copy ( "/Applications/medadmin/sampledatabase", newpath);
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