Results 1 to 7 of 7

Thread: Compression in QT

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Compression in QT

    I m new to QT world. Can anyone help me to point correct link which will help me to implement Compression of text file using QT.
    Any help would be appreciated.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Compression in QT

    It is Qt and if you are new, our Newbie section is just fine!

    See qCompress() or have a look at e. g. QuaZip.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compression in QT

    Is there any specific algorithm you would like to use?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Sep 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compression in QT

    I know this thread is quite old, but I actually have the same question.

    I'm looking for a compression library for C++/QT. It should not be a project, but open source or just a C++ Reference?
    I'm also looking for some "special" options like:
    - the method receives just a file name or a list of file names (e.g. hold in a QWidgetList or a vector)
    - the compression should not last hundreds of years
    - there should be a compression into files like .zip, .rar. ..

    I just want to use a method, not a class or a whole project.
    I read about QuaZIP, zlib or qCompress/qUncompress... but what would be the best for my impression?
    Edit: I ment, did someone have any experiences?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compression in QT

    qCompress can only compress a single entity at once so if you are looking for a solution that doesn't require you to write any additional code, start with QuaZIP or call appropriate standalone compressors (tar, bzip2, zip, etc.) through QProcess.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Sep 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compression in QT

    Thanks for that, I'm going to think about it.
    A question aside: Can QuaZIP compress both, files and folders?

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Compression in QT

    You can't compress "folders", a folder is just a name. You can only compress files in folders. If you mean whether QuaZIP can do recursive compression then AFAIR it can.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Qprocess Rar compression
    By Zergi in forum Newbie
    Replies: 1
    Last Post: 26th April 2008, 10:59
  2. QImage and JPEG compression-level
    By jcr in forum Qt Programming
    Replies: 6
    Last Post: 8th May 2007, 01:16
  3. QHttp & HTTP 1.1 Compression
    By bporter in forum Qt Programming
    Replies: 1
    Last Post: 19th April 2007, 20:04
  4. Replies: 1
    Last Post: 5th December 2006, 11:07

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.