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. Looking simple compress/decompress code
QtWS25 Last Chance

Looking simple compress/decompress code

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

    I have some file and I need simple compress/decompress code. Is there any Qt solution ? There is one more thing I need then open file by some of well known archivers.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      Look at quazip library. I think it should help you.
      Also if you need compression for internal usages (for example storing big chunks of text data to reuse them later in your app) you can use qCompress function.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        QByteArray has compress and decompress methods. I think they use libz, but am not sure how good the results are compared to other compression tools or whether normal compression tools can be used to extract the data again.

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

          We've been over this before. It is even a "FAQ":http://developer.qt.nokia.com/faq/answer/how_to_compress_data_with_qt entry. Please search the resources before asking again.

          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