title: How do you Run ADB commands with Qt Creator?
body: <p>Currently I am attempting to get a push button in Qt to run the following command: <code>adb reboot</code>.  I am on a MAC and when I run this command in my console it reboots the <code>Android</code> device connected to my computer via <code>USB</code>. I have read the forums online and have been unable to solve this problem. Here are some of my attempts when trying to call <code>adb reboot</code> in Qt:</p>
  
  <pre><code>void MainWindow::on_pushButton_clicked()
  {
      QProcess::startDetached("/bin/bash", QStringList()&lt;&lt; "-c" &lt;&lt; "export PATH=${PATH}:/Downloads/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/");
      QProcess::startDetached("/bin/bash", QStringList()&lt;&lt; "-c" &lt;&lt; "adb reboot");
      QProcess::startDetached("/bin/sh", QStringList()&lt;&lt; "-c" &lt;&lt; "adb reboot");
      QProcess::startDetached("/Downloads/adt-bundle-mac-x86_64-20140702/sdk/platform-tools/", QStringList()&lt;&lt; "-c" &lt;&lt; "adb reboot");
  }
  </code></pre>
  
  <p>This is the output of my console when I click the button:</p>
  
  <pre class="lang-none prettyprint-override"><code>Starting /Users/ddelorenzo/Documents/QaGUI/QaGUI/QaGUI.app/Contents/MacOS/QaGUI..
  /bin/bash: adb: command not found
  /bin/sh: adb: command not found
  </code></pre>
  
  <p>Any help would be greatly appreciated! </p>