title: Run command line process as admin Qt
body: <p>I am writing a Qt application that needs to call system programs (<code>netsh</code>) and run them as administrator.</p>
  
  <p>However, <code>QProcess</code>, <code>QDesktopServices</code> and <code>system()</code> don't allow me to run the application as administrator (not even with <code>runas</code>).</p>
  
  <p>The only solution that I found is to use <code>ShellExecute</code>, but it does not even open the program.</p>
  
  <p><strong>My code is:</strong></p>
  
  <p><code>#ifdef Q_OS_WIN {
      ShellExecute(0, LPCWSTR("runas"), LPCWSTR("netsh wlan start hostednetwork"),                  0, 0, SW_SHOWNORMAL);
  }</code></p>
  
  <p>I have also tried to use other options, such as <code>open</code> and tried to run other programs, such as Notepad (<code>notepad.exe</code>) and Control Panel (<code>control.exe</code>), nothing worked.</p>
  
  <p>I have also tried to add an manifest file and nothing was solved.</p>
  
  <p>Do I miss something in my code? (examples are welcome). </p>