Looking simple compress/decompress code
-
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.
-
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.
-
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.