PDA

View Full Version : copy file



deepa.selvaraj
25th October 2007, 07:34
hi
when i was trying to copy files from source directory to destination directory by using below code only file name only copying but file content is not copying.i dont know how to copy content also inside the file.
if(!QFile::copy(m_strSourceDirectory+fileFind[tempVar],m_strDestDirectory+fileFind[tempVar]))
{
bAllCopied = false;
}

jpn
25th October 2007, 08:53
Does QFile::exists() return true for the source file? And what about QFileInfo::isReadable()?