qCompress can only compress a single entity at once so if you are looking for a solution that doesn't require you to write any additional code, start with QuaZIP or call appropriate standalone compressors (tar, bzip2, zip, etc.) through QProcess.