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][Windows] Listing the contents in an archive (zip, 7z, etc.)
Forum Updated to NodeBB v4.3 + New Features

[Qt][Windows] Listing the contents in an archive (zip, 7z, etc.)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 4.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.
  • I Offline
    I Offline
    Inathero
    wrote on last edited by
    #1

    How can this be done without extracting the files to a temporary directory and then reading the directory (which is what I'm currently doing). I want to have a more efficient way of listing the contents without having to extract them, as that can take up quite a bit of time for larger files, especially those that use older computers.

    Essentially I want something similar to winrar or 7zm where you double click the file and it opens up showing the contents inside without extracting. I don't need a gui side of that as it'll be just a data stream to the program, not for the user to see.

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      "7-Zip":http://www.7-zip.org/ is open source, has LGPL, supports a load of different formats and already incorporates the functionality of listing archive contents without decompressing them first (if this is technically possible).

      Have you taken a look at it (as there is no Qt-ish way of doing this)?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        veeraps
        wrote on last edited by
        #3

        7-Zip (7z.exe) provides a way of listing the contents of archive file - 7z.exe l <archive.zip> will list contents of archive.zip - may be this output could be used to list contents.

        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