qt 解压缩问题
有个一个打包好的文件夹,现在要通过QT进行解压缩,请问不用第三方类库怎么实现??
下面是我在网上找的代码:
void SysConfig::unzip(QString inFileName,QString outFileName){ QFile inFile(inFileName); QFile outFile(outFileName); inFile.open(QIODevice::ReadOnly); outFile.open(QIODevice::WriteOnly); QByteArray uncompressData=inFile.readAll(); QByteArray compressData=qUncompress(uncompressData); outFile.write(compressData); inFile.close(); outFile.close();}