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. How to Unzip a zip file with qt c++?
QtWS25 Last Chance

How to Unzip a zip file with qt c++?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 3.6k 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.
  • R Offline
    R Offline
    Ramkumar Mohan
    wrote on 2 Aug 2022, 04:53 last edited by
    #1

    How to Unzip the folder in Qt? and also I want to know after extracting the total folder.

    J 1 Reply Last reply 2 Aug 2022, 06:18
    0
    • R Ramkumar Mohan
      2 Aug 2022, 04:53

      How to Unzip the folder in Qt? and also I want to know after extracting the total folder.

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 2 Aug 2022, 06:18 last edited by
      #2

      @Ramkumar-Mohan Simple search gives you: https://forum.qt.io/topic/74306/how-to-manage-zip-file

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • G Offline
        G Offline
        ghostman
        wrote on 1 Dec 2024, 09:49 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • G Offline
          G Offline
          ghostman
          wrote on 7 Dec 2024, 14:47 last edited by ghostman 12 Jul 2024, 14:50
          #4

          This can be easily done using QMicroz.

          QMicroz::extract("path_to_zip_file");
          

          or even:

          QMicroz::extract("path_to_zip_file", "output_folder_path");
          

          If you need to extract the archive to a memory buffer:

          BufFileList buf_data;
          QMicroz qmz("zip_file");
          if (qmz)
              buf_data= qmz.extract_to_ram();
          
          1 Reply Last reply
          0
          • Q Offline
            Q Offline
            qingfeng
            wrote on 9 Dec 2024, 08:11 last edited by
            #5

            Use minzip

            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