title: Copying the content of a character array to a QString in Qt
body: <p>I have a character pointer that in any run can have different length. For example:</p>
  
  <pre><code>char*  myChar;
  </code></pre>
  
  <p>In one run its content can be <em>"Hi"</em> and in another run it can be <em>"Bye"</em>.</p>
  
  <p>I want to copy the content of <code>myChar</code> to a QString, for example if I have:</p>
  
  <pre><code>QString myString;
  </code></pre>
  
  <p>I want to copy the content of <code>myChar</code> to <code>myString</code>; how can I do that?</p>