How to Unzip folder in Qt?
Unsolved
General and Desktop
-
@Bharathi
look at this http://stackoverflow.com/questions/4518129/qt-classes-to-zip-unzip-files
http://stackoverflow.com/questions/2598117/zipping-a-folder-file-using-qt
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);