zip or unzip

Zipping and unzipping files using Qt 5 framework

Karan Balkar
Hey everyone! Qt provides a QByteArray class that can be used to store raw bytes and traditional 8-bit terminated strings. Moreover, Qt also provides the QString class to store string data. QString is mainly used throughout the Qt API. Through this post, we will learn how to zip and unzip files using Qt. We will create a sample text file containing a message as follows, demo.txt This is a demo to zip and unzip files using Qt framework Pre-requisites: Qt Creator, MinGW compiler for Windows (64 bit)