osx - QT use unzip on OS X -


i'm trying unzip within application. need work on os x.

for reason cannot unzip file:

qprocess *proc = new qprocess( ); proc->start("unzip", qstringlist("testfile.zip")); 

any ideas i'm doing wrong?

there 2 things can try. 1. instead of "unzip", use "/usr/bin/unzip", ie, provide full path of program. 2. use 1 big string, not string list. this:

 proc->start("/usr/bin/unzip testfile.zip"); 

Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -