title: Clean way to convert QString to char * (not const char* !!!!)
body: <p>I have an ugly code for this stuff (create a c char pointer and copy the QString in it) but maybe ... exist in QT an elegant way ...</p>
  
  <p>actual code :</p>
  
  <pre><code>QString maquina is a method parameter.
  
  char *c_maquina = new char[maquina.length() + 1];
  strcpy(c_maquina, maquina.toStdString().c_str());
  </code></pre>
  
  <p>just for information I need a REAL char* not a simple const char* so this code not work :</p>
  
  <pre><code>idMaquina.toLatin1().data();
  </code></pre>
  
  <p>I can't use <a href="http://developer.qt.nokia.com/faq/answer/how_can_i_convert_a_qstring_to_char_and_vice_versa">http://developer.qt.nokia.com/faq/answer/how_can_i_convert_a_qstring_to_char_and_vice_versa</a></p>