title: How to delete new-line character in asctime in QString
body: <p>I am converting time_t to human readable format. For this purpose I am using <code>asctime()</code> function. However it is also mentioned in c++ references. </p>
  
  <blockquote>
    <p>The string is followed by a new-line character ('\n') and terminated
    with a null-character.</p>
  </blockquote>
  
  <p>I know that I can delete '\n' character if I use char pointer. Such as; </p>
  
  <pre><code>char * str; 
  str(strlen(str)-1) = '\0'; // repleacing new-line char to null-char
  </code></pre>
  
  <p>However how can I delete new-line characther in QString? Here is my example; </p>
  
  <pre><code>    time_t rawtime;
      struct tm * timeinfo;
      QString strList;
      rawtime = 1430687052;
      timeinfo = localtime (&amp;rawtime);
      strList += asctime(timeinfo);
  </code></pre>
  
  <p>EDIT: </p>
  
  <p>I am creating report file, so that I have lots of '\n' char in my <code>QString</code>, thats why replacing all '\n' char to null pointer is not good idea.</p>