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. Zipping a file or folder using zlib library
Forum Update on Monday, May 27th 2025

Zipping a file or folder using zlib library

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 3.7k Views
  • 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.
  • KiraK Offline
    KiraK Offline
    Kira
    wrote on last edited by
    #1

    Hello All,
    Where can I find an example of the following:
    #include <QtZlib/zlib.h> to create a zip of file or folder
    I have gone through the following ticket:
    https://forum.qt.io/topic/74306/how-to-manage-zip-file
    but it is using a wrapper can this be implemented using the zlib library.

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Kira said in Zipping a file or folder using zlib library:

      can this be implemented using the zlib library

      No since zlib is only a compression library which compresses data.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        Examples using

        • KArchive: https://cgit.kde.org/karchive.git/tree/examples
        • Quazip: https://stackoverflow.com/questions/13953528/how-can-i-zip-a-directory-folder-with-quazip
        • Raw zlib: https://stackoverflow.com/questions/4538586/how-to-compress-a-buffer-with-zlib

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        7
        • KiraK Offline
          KiraK Offline
          Kira
          wrote on last edited by
          #4

          Ok thanks !!

          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