Hello. I noticed QFile::remove has problems with deleting files sometimes, namely I can't delete the video file. I think it is somehow related to sharing violation, BUT with WinAPI function DeleteFile it is deleted without any problems, so I suppose there is some bug in QFile. I have this issue always with that file, so it is easy to reproduce.

Sample:
Qt Code:
  1. // returns false
  2. QFile::remove("C:/Users/shroom/Documents/TestIt/downloads/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3-XviK/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3.CD1-XviK.avi");
  3.  
  4. // returns 1 and deletes fine
  5. DeleteFileA("C:/Users/shroom/Documents/TestIt/downloads/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3-XviK/The.Matrix.1999.iNTERNAL.DVDRip.XviD.AC3.CD1-XviK.avi");
To copy to clipboard, switch view to plain text mode 

I am using Qt 4.7.2 and my operating system is Windows 7 x64