Thanks to visit codestin.com
Credit goes to github.com

Skip to content

oblivioncth/qmicroz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QMicroz

A simple Zip/Unzip solution for Qt projects.

This is a lightweight C++/Qt wrapper around the miniz zip library (based on zlib).
The code can easily be used as a library (shared or static), which will provide ready-made functions for quick and convenient work with zip archives. There is no need to add additional dependencies like zlib and deal with low-level APIs.

Key features:

  • Create and extract zip files.
    Working with files, folders and their lists.
  • Create/extract archives from/to buffered data.
    UnZip files into the RAM buffer.
    Make a zip file from QByteArray (or a list of them).
    Extract the buffered zip to disk...

How to use:

Basic functions are available statically. For example:

Extracting the archive to the parent folder

QMicroz::extract("zip_file_path");

Archiving a folder with custom path to zip

QMicroz::compress_folder("source_path", "zip_file_path");

Zipping a list of files and/or folders

QMicroz::compress_here({"file_path", "folder_path", "file2_path"});

UnZipping a file into a memory buffer (non-static)

BufList _buffer;
QMicroz _qmz("path_to_zip");
if (_qmz)
    _buffer = _qmz.extractToBuf();

More examples on Wiki.
A complete list of functions is available in the qmicroz.h file.

About

C++/Qt wrapper over miniz. Zip/Unzip with Qt.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.0%
  • C++ 7.7%
  • Other 0.3%