Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Looking simple compress/decompress code

    General and Desktop
    4
    4
    3945
    Loading More Posts
    • 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
      Anticross last edited by

      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 Reply Quote 0
      • D
        DenisKormalev last edited by

        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 Reply Quote 0
        • T
          tobias.hunger last edited by

          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 Reply Quote 0
          • A
            andre last edited by

            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 Reply Quote 0
            • First post
              Last post