Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Looking simple compress/decompress code
Anticross last edited by
I have some file and I need simple compress/decompress code. Is there any Qt solution ? There is one more thing I need then open file by some of well known archivers.
DenisKormalev last edited by
Look at quazip library. I think it should help you.
Also if you need compression for internal usages (for example storing big chunks of text data to reuse them later in your app) you can use qCompress function.
QByteArray has compress and decompress methods. I think they use libz, but am not sure how good the results are compared to other compression tools or whether normal compression tools can be used to extract the data again.
andre last edited by
We've been over this before. It is even a "FAQ":http://developer.qt.nokia.com/faq/answer/how_to_compress_data_with_qt entry. Please search the resources before asking again.