Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt & Zip files
I am wondering, why Qt doesn't support reading/writing ZIP files. I noticed, that you have QZipWriter / QZipReader class with following header:
// W A R N I N G
// This file is not part of the Qt API. It exists for the convenience
// of the QZipWriter class. This header file may change from
// version to version without notice, or even be removed.
// We mean it.
I am a little confused. Wouldn't it be great, if Qt could support that? Why is that not part of the Qt API?
What's wrong with that class? You need it for writing OpenDocument files and it seems to work (not the ODF format but zipping).
andre last edited by
This is a FAQ. Unfurtunately, the "FAQ":/faq category has been hidden a bit on the qt-project website. However, "this is the article":/faq/answer/how_to_compress_data_with_qt on using compression.
Thank you for the answer.
In your article, it is mentioned, that I have to use 3rd party libs for creating/reading archive files. But with QZipWriter / QZipReader, it is possible to do that also.
That's the question: Why is that not part of the Qt Api? It still implemented in Qt, but not documented and it is necessary to write/read ODF files. qCompress/qUncrompress is not useful if I want to create a zip-archive or to implement the ODT/DOCX format by my own.
It's not anymore important: I found that in the bugtracker:
(Related to that, which looks really similar to my post: https://bugreports.qt-project.org/browse/QTBUG-3897 )
So, I am waiting for 5.1 :)