title: How can I convert a char to QString?
body: <p>Well this proves I'm a noob at coding! I've looked everywhere and still can't get this right.  This should be pretty simple.</p>
  
  <p>I have been trying this:</p>
  
  <pre><code>int i;
  for(i=0;i&lt;16;i++)
  {
    QChar q = QChar(memblock[i]);
    QString s = QString(q);
    QTableWidgetItem *item = new QTableWidgetItem(s);
    ui-&gt;tableWidget-&gt;setItem(rowCount, colCount, item);
  }
  </code></pre>
  
  <p>So I'm making table items from each string.  That's because I also couldn't figure out how to make table items from just a QChar, or plain char.</p>
  
  <p>But each cell ends up with:</p>
  
  <pre><code>Ý
  </code></pre>
  
  <p>Whereas when I add in:</p>
  
  <pre><code>cout &lt;&lt; memblock[i];
  </code></pre>
  
  <p>It properly shows:</p>
  
  <pre><code>RIFFd2  WAVEfmt 
  </code></pre>
  
  <p>Here is the code that reads in the raw data:</p>
  
  <pre><code>ifstream file (text, ios::in|ios::binary|ios::ate);
  if (file.is_open())
  {
      size = file.tellg();
      memblock = new char [size];
      file.seekg(0, ios::beg);
      file.read(memblock, size);
      file.close();
  }
  </code></pre>
  
  <p>Also, when I do <code>cout &lt;&lt; &amp;memblock[i]</code>, for i from 0 to 4 I get: 
  <code>RIFFd2</code>
  <code>IFFd2</code>
  <code>FFd2</code>
  <code>Fd2</code></p>
  
  <p>And so on.  </p>