Zip is patent encumbered. There is a class with the compression algorithm made 
available as a QIODevice  in a Qt Solution. But the zip table is what is 
missing. If you only need to support your own zips, then a simple serialization 
of QMap<QString, QByteArray> would suffice. You'd probably NOT want to use a 
QMap though, because you'd want to handle the I/O in a file-by-file 
chunk-by-chunk manner. But the datastream would be in a QMap format.



________________________________
 From: Graham Labdon <graham.lab...@avalonsciences.com>
To: Konstantin Tokarev <annu...@yandex.ru> 
Cc: "qt-inter...@qt.nokia.com" <qt-inter...@qt.nokia.com>; 
"interest@qt-project.org" <interest@qt-project.org> 
Sent: Monday, November 21, 2011 9:15 AM
Subject: Re: [Interest] [Qt-interest] (no subject)
 
What libraries are available to produce zip files in Qt? The ODT files in Qt 
use QZipWriter which is private

-----Original Message-----
From: Konstantin Tokarev [mailto:annu...@yandex.ru] 
Sent: 21 November 2011 13:27
To: Graham Labdon
Cc: qt-inter...@qt.nokia.com; interest@qt-project.org
Subject: Re: [Qt-interest] (no subject)

21.11.2011, 16:06, "Graham Labdon" <graham.lab...@avalonsciences.com>:
> Hi
>
> I am attempting to develop a simple text editor app that is able to save and 
> read files in a custom XML format (designed by me).
>
> The user should be able to add an image to the document, but I am having 
> trouble coming up with a strategy to save this to my file other than saving 
> the data inline.
>
> Has anyone else done this before or have any ideas on a good strategy?

E.g. in ODT format embedded resources are stored alongside with XML (which 
contains links to files), and whole thing is zipped together.

-- 
Regards,
Konstantin
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to