How to Unzip folder in Qt?
How to Unzip the folder in Qt? and also I want to know after extracting the total folder is this possible to trigger an event or emit a signal in Qt??
look at this http://stackoverflow.com/questions/4518129/qt-classes-to-zip-unzip-files
read about Zipping and unzipping files with Qt http://www.antonioborondo.com/2014/10/22/zipping-and-unzipping-files-with-qt/
@Bharathi Much simpler solution: Use QProcess to call an external zip-program, like:
const QString program = "C:/Program Files/zip.exe"; const QStringList arguments = QStringList() << "-X0q" << fileName << "mimetype"; QProcess process; process.setWorkingDirectory(epubDirectoryPath); process.start(program, arguments); process.waitForFinished(-1);
Since it was not mentioned before, KArchive from KDE (works on all Qt platforms) is capable of zipping/unzipping multiple archive formats and comes with examples.