title: Start cmd openvpn-gui with arguments in QT
body: <p>I have a QT desktop aplication and now I want that when it starts it automatically calls openvpn to start too.</p>
  
  <p>First try I've made it with a simple system() call, and it works, but it leaves cmd window in screen. I don't like it, but it works:</p>
  
  <pre><code>system("openvpn-gui --connect m2smart.ovpn")
  </code></pre>
  
  <p>But now I want to launch directly without needing the cmd window, and if I do it without arguments it works, this:</p>
  
  <pre><code>QProcess openvpn;
  QString cmd("openvpn-gui.exe");
  openvpn.startDetached(cmd);
  </code></pre>
  
  <p>Now, the only thing that I need is to indicate which config.ovpn to connect, like in the first example, I've searched how to do it and it seems to be like that:</p>
  
  <pre><code>QProcess openvpn;
  QString cmd("openvpn-gui.exe");
  QStringList args;
  
  args &lt;&lt; "--connect m2smart.ovpn";
  openvpn.startDetached(cmd, args);
  </code></pre>
  
  <p>But it shows an openvpn window that says:</p>
  
  <p>"Options error: unrecognized option or missing parameter(s): --connect m2smart.ovpn"</p>
  
  <p>But if I open a cmd and put "openvpn-gui --connect m2smart.ovpn it works, independently of my working directory.</p>
  
  <p>So... anyone can help me? I'm stucked with this.</p>
  
  <p>Thanks!</p>