title: Using system command in Qt
body: <p>How can I use the <code>system</code> command where the command is written in a QString?</p>
  
  <p>Like:</p>
  
  <pre><code>QString command="chmod -R 777 /opt/QT/examples/code/TestGUI/Data";    
  system(command);
  </code></pre>
  
  <p>While compiling, I get this error:</p>
  
  <pre><code>cannot convert ‘QString’ to ‘const char*’
    for argument ‘1’ to ‘int system(const char*)’
  </code></pre>
  
  <p>Can anyone suggest something?</p>