Are you trying to overwrite a file?
Note that if a file with the name newName already exists, copy() returns false (i.e. QFile will not overwrite it).
Are you trying to overwrite a file?
Note that if a file with the name newName already exists, copy() returns false (i.e. QFile will not overwrite it).
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
yaa, i tried with bool QFile::copy ( const QString & fileName, const QString & newName ) [static] also...............
but the result is same....its not copied............
Your code is confusing. What are you trying? Copying FirstPath to SecondFilePath or SecondFilePath to FirstPath. If you want "FirstPath to SecondFilePath" then your syntax if wrong.
How does your file system and privileges look like? Post the return of "ls -lAhR" inside your directory: QDir::currentPath()+QDir::separator()+"Test1".
EDIT: forget about the "ls -lAhR" since you are working on windows. Then you must write it by hand...
Bookmarks