You can always copy files in a secondary thread, e.g. something like this might work:
struct FileStruct {
FileStruct(s, d) : sourcePath(s), destPath(d) {}
};
bool copyFile(FileStruct s) {
QFile::copy(s.
sourcePath, s.
destPath);
return true;
}
QList<FileStruct> filesToCopy;
filesToCopy << FileStruct(...,...) << FileStruct(...,...) << FileStruct(...,...);
QFuture<bool> result = QtConcurrent::mapped(filesToCopy, copyFile);
struct FileStruct {
QString sourcePath;
QString destPath;
FileStruct(s, d) : sourcePath(s), destPath(d) {}
};
bool copyFile(FileStruct s) {
QFile::copy(s.sourcePath, s.destPath);
return true;
}
QList<FileStruct> filesToCopy;
filesToCopy << FileStruct(...,...) << FileStruct(...,...) << FileStruct(...,...);
QFuture<bool> result = QtConcurrent::mapped(filesToCopy, copyFile);
To copy to clipboard, switch view to plain text mode
but it will probably be slower than copying one file at a time (unless you have a SSD disk).
Bookmarks