The easiest way to do this is with QMicroz.
QStringList _fileList; _fileList << "file1_path"; _fileList << "file2_path"; ... QMicroz::compress_(_fileList);