qCompress
- 
Hi!..
how can I use qCompress to compress multiple files and directories?
i currently have this:
./content.dat (which is a html document)
./images/0.jpg
./images/1.jpgi'm looking for compressing these 3 files keeping their directory hierarchy.
I could use a non orthodox way using system terminal tar or gzip, but qCompress seems to be more ellegant..
thanks in advance.
 - 
qCompress does not support this nor does gzip. If you want to create an archive you have to use other libraries.
 - 
Hi!..
how can I use qCompress to compress multiple files and directories?
i currently have this:
./content.dat (which is a html document)
./images/0.jpg
./images/1.jpgi'm looking for compressing these 3 files keeping their directory hierarchy.
I could use a non orthodox way using system terminal tar or gzip, but qCompress seems to be more ellegant..
thanks in advance.
@U7Development said in qCompress:
but qCompress seems to be more ellegant
i disagree, but if you really want i would go this way:
use QDataStream to create a QByteArray which contains a QString (path) and another QByteArray (filedata) (for each file). The final bytearray can be compressed.
Use the same way to uncrompress. - 
thanks. i will go for karchive then..
greetings