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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -