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
Post a Comment