Так же! Отказ в доступе!
Вот даже по подробней код
C++ (Qt)
    QFile f;
    QString s;
    QDir dir2 = QDir::temp();
    //Берем путь к temp папки
    s = dir2.absolutePath() + '/';
    QDir dir(s);
    if (!dir.exists(s+"code"))
        if(dir.mkdir(s+"code")){
            QMessageBox::information(0,"Папка создалась!",s);
        } else{
            QMessageBox::critical(0,"Папка не создалась!",s);
            return;
        }
 
    s += "code/";
 
    // Устанавливаю имя файла в ресурсах
    f.setFileName(":/new/prefix1/1111.xlsx");
    if(!f.exists()){
        QMessageBox::critical(0,"Ошибка","Файл :/new/prefix1/1111.xlsx отсутствует");
        return;
    }
 
 
    if (!QFile::exists(s+"1121.xlsx"))
        if (f.copy(s+"1121.xlsx"))
            QMessageBox::about(0,"","File copy: OK");
        else{
            QMessageBox::critical(0,"File copy: ",f.errorString()+ ": "+s+"1121.xlsx");
            return;
        }
 
    f.close();
    f.setFileName(s+"1121.xlsx");
    if (f.remove() )
        QMessageBox::about(0,"","File delete: OK");
    else{
        QMessageBox::critical(0,"File delete: ",f.errorString()+s+"1121.xlsx");
 
    }