QFile file; file.copy(":/xxx","需要复制到的目录"); 示例: QFile file; file.copy(":/server.exe","c:\\windows\\system32\\server.exe");