Linux / Qt4.6.3
I want to run a shell script which I've placed in a .qrc resource.

Qt Code:
  1. ...
  2. QString script(":/scripts/findttyusb.sh"); //<-- qp.waitForFinished() returns false (error)
  3. QString script("/root/Projects/UT804/UT804/scripts/findttyusb.sh"); //<--- works fine
  4. qp.start(script);
  5. if (qp.waitForFinished()){
  6. if (qp.exitCode() == 0){
  7. QByteArray result = qp.readAll();
  8. ...
To copy to clipboard, switch view to plain text mode 

Do I have to explicitly get the script out of the qrc, create a file and then execute it - or is there a really easy way to do this?
Thanks for any thoughts.