Hello,

when i try to copy a file, create qt additional a file like this "qt_temp.xxxxxx". That do qt only when "if (settings)" come true.

Qt Code:
  1. QFile file(QDir::home().absolutePath() + "/settings.xml);
  2. if (settings) //e.g. settings = "c:\programs\myapp\settings.xml"
  3. {
  4. file.setFileName(settings);
  5. }
  6. if (file.exists() == false)
  7. {
  8. file.copy( ":/settings/settings.xml", file.fileName() );
  9. }
To copy to clipboard, switch view to plain text mode 

Can anyone help me?

Thanks.