Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt & Zip files
Forum Updated to NodeBB v4.3 + New Features

Qt & Zip files

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 9.6k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Serenity
    wrote on last edited by
    #1

    Hey guys,

    I am wondering, why Qt doesn't support reading/writing ZIP files. I noticed, that you have QZipWriter / QZipReader class with following header:
    [code]
    //
    // 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.
    //
    [/code]

    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).

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Serenity
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Serenity
          wrote on last edited by
          #4

          It's not anymore important: I found that in the bugtracker:
          https://bugreports.qt-project.org/browse/QTBUG-20896
          (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 :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved