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++?

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 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.
  • Ramkumar MohanR Offline
    Ramkumar MohanR Offline
    Ramkumar Mohan
    wrote on last edited by
    #1

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

    jsulmJ 1 Reply Last reply
    0
    • Ramkumar MohanR Ramkumar Mohan

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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • G Offline
          G Offline
          ghostman
          wrote on last edited by ghostman
          #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 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