Can someone explain why this works:
Qt Code:
  1. sTemp = QDir::tempPath() + "/exfprogtemp.exf";
  2. fTemp.setFileName(ui.eFile->text());
  3. if(fTemp.exists(sTemp)) fTemp.remove(sTemp);
  4. if(!fTemp.copy(ui.eFile->text(), sTemp)) fout("Can't create local temporary file");
To copy to clipboard, switch view to plain text mode 

But this doesn't:
Qt Code:
  1. sTemp = QDir::tempPath() + "/exfprogtemp.exf";
  2. if(fTemp.exists(sTemp)) fTemp.remove(sTemp);
  3. if(!fTemp.copy(ui.eFile->text(), sTemp)) fout("Can't create local temporary file");
To copy to clipboard, switch view to plain text mode 

As far as I can tell the problem is that Qt can not handle to much copy/move/remove of a file if you haven't set a filename.
Is this how it's intended?

For me I would like to see the option to move/copy/remove a file without the need to create an QFile object.

Thanks in advance,
Bart.