【发布时间】:2021-10-18 08:08:09
【问题描述】:
是否可以将整个目录移动到垃圾箱(如文件 QFile::moveToTrash)? 有一个文件夹有很多文件,当将每个单独的文件移动到垃圾箱时会让人感到困惑。
编辑:
// "backup" is a folder in the application directory
//QDir("backup").removeRecursively();
QFile::moveToTrash("backup");
ui->btnDeleteAllBackups->setEnabled(false);
refreshDiskUsage();
qInfo().noquote() << "Deleted backups";
【问题讨论】: