Qt zip解压
如题,我想读取一个zip压缩文件里面的东西,或者把他解压出来就行了,Qt用什么库???我是windows平台不要给我一些linux里面才有的库。。。。
[解决办法]
单纯的zip还是rar还是tar.gz?
貌似这几个分别有不同的解决方案
QByteArray qUncompress ( const QByteArray & data )
Uncompresses the data byte array and returns a new byte array with the uncompressed data.
Returns an empty QByteArray if the input data was corrupt.
This function will uncompress data compressed with qCompress() from this and any earlier Qt version, back to Qt 3.1 when this feature was added.
Note: If you want to use this function to uncompress external data that was compressed using zlib, you first need to prepend a four byte header to the byte array containing the data. The header must contain the expected length (in bytes) of the uncompressed data, expressed as an unsigned, big-endian, 32-bit integer.
See also qCompress().
[解决办法]
楼主在用Qt作symbian开发?