Qt 6.11 is out! See what's new in the release
blog
decompress tar.gz
-
Hi,
Either use QProcess to call the tar command line tool or use the KArchive library
-
You can. What is your issue with QProcess ?
-
well i have some trouble find the "tar" program, i remember qprocess is like this
myProcess->start(program, arguments);
arguments=path of tar.gz
program =path of tar program which i have no idea where is at under my linux.also if i run on another linux not sure tar app gonna be at same location.
-
No, if tar is properly installed, you can just call it without any special path before it.
-
If you want tar to do something you have to pass it arguments, not just the archive name.
If you take a look at the documentation I linked to, you'll see how to build the argument list to pass as second argument to the start method.