title: Qchar* to char* conversion
body: <p>I'm building a Qt Gui application for monitoring data from serial port.I'm using <code>qextserialport</code> library. Here's the problem I ran into.</p>
  
  <pre><code>void MainWindow::onDataAvailable()
  {
      QString data_ser,data_trimmed;
      port-&gt;readLine(data_ser.data(),0);
      data_trimmed = data_ser.trimmed();
      ui-&gt;textEdit-&gt;append(data_trimmed);
  }
  </code></pre>
  
  <p><code>readLine</code> method's first argument should be of type <code>char*</code>.How to convert <code>QChar*</code> returned by <code>data_ser.data()</code> into <code>char*</code>.I could have used <code>std::string</code> instead of <code>QString</code> but qt gui objects are better compatible with QString and I need the <code>trimmed</code> method too.</p>
  
  <p>Here's the error i'm getting : </p>
  
  <p>no matching member function for call to 'readLine'. 
  no known conversion from 'QChar *' to 'char *' for 1st argument.</p>
  
  <p>How to solve this??</p>