title: read QProcess output to string
body: <p>I have a code that uses QProcess like this.</p>
  
  <pre><code>int main(int argc, char *argv[])
  {
      int status=0;
      QProcess pingProcess;
      QString ba;
      QString exec = "snmpget";
      QStringList params;
       params &lt;&lt; "-v" &lt;&lt; "2c" &lt;&lt; "-c" &lt;&lt; "public" &lt;&lt; "10.18.32.52" &lt;&lt;    ".1.3.6.1.4.1.30966.1.2.1.1.1.5.10";
      status=pingProcess.execute(exec, params);
      pingProcess.close();
  }
  </code></pre>
  
  <p>This outputs the following.</p>
  
  <pre><code>SNMPv2-SMI::enterprises.30966.1.2.1.1.1.5.10 = STRING: "0.1"
  </code></pre>
  
  <p>I want to take(read) this output as string. I searched for this and I cant find the solution. Thanks in advance.</p>