title: Running a Bash Script with arguments as a Qt resource
body: <p>Qt newbie here :).
  I'm currently executing a bash script in Qt using the <code>popen</code> function to redirect the output to a textBrowser in my application. When I add the script to my project as a resource it does not seem to execute anymore? I use the <code>:/myScript.sh</code> syntax and then try to add my arguments as QStrings. 
  Any advice will be appreciated!</p>
  
  <pre><code>FILE *in; 
  char buff[512]; 
  QString args = ":/myScript.sh" + &lt;arguments&gt;; 
  QByteArray ba = args.toLatin1(); 
  char *temp = ba.data(); 
  if(!(in = popen(temp , "r")))
  { 
      exit(1);
  }
  while(fgets(buff, sizeof(buff), in)!=NULL)
  { 
      ui-&gt;txtConsole-&gt;append(buff); 
  }
  ui-&gt;progressBar-&gt;setValue(50); pclose(in);
  </code></pre>