Page 3 of 3 FirstFirst 123
Results 41 to 41 of 41

Thread: how to unzip the file in qt using gzip

  1. #41
    Join Date
    Nov 2014
    Location
    Chennai
    Posts
    160
    Thanks
    65
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to unzip the file in qt using gzip

    i will try and update my result thank you for guiding me to get result


    Added after 34 minutes:


    Thanks for every one those who guided me to get final solution i got result what am expected thank you to all
    jthomps i checked with man tar and executed -C in my code to specify the path, thank you its working this was i changed
    Qt Code:
    1. QString program = "tar";
    2. arguments<<"-zxvf"<<"/home/digital_images/Remote1.tar.gz"<<"-C"<<"/home/digital_images/Remote";
    To copy to clipboard, switch view to plain text mode 
    Quote Originally Posted by jthomps View Post
    What is the current working directory when your app runs? I am sure it's creating the folders and extracting the file, but that's being done in the current working directory.

    If you want to control where the files are extracted to, look at "man tar" and see if the "-C" program argument might be of benefit to you. Your other option would be to change your working directory when your app is running.
    Last edited by iswaryasenthilkumar; 26th March 2015 at 07:42.

Similar Threads

  1. unzip zip file contains files and folders with quazip
    By nhocjerry in forum Qt Programming
    Replies: 1
    Last Post: 7th November 2013, 09:19
  2. Need simple example with OSDaB-Zip unzip file
    By noborder in forum Newbie
    Replies: 2
    Last Post: 17th January 2013, 22:59
  3. unZip via 7z.
    By noborder in forum Newbie
    Replies: 9
    Last Post: 23rd December 2012, 20:26
  4. How to Zip/Unzip with QT for symbian???
    By baka3k in forum Newbie
    Replies: 2
    Last Post: 22nd June 2011, 09:24
  5. OpenOffice file to QTextEdit (Unzip Problem)
    By patrik08 in forum Qt Programming
    Replies: 6
    Last Post: 27th November 2006, 11:32

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.