title: Search QString character by character
body: <p>I'm trying to parse a QString character by character with a while loop, but I can't figure out how to parse an individual character to char type. Here's my code, I know it's not optimal:</p>
  
  <pre><code>QString temp = (QString)t[0];
  int i = 1;
  
  while (t[i] != " ");
  {
      temp.append(t[i]);
      i += 1;
  }
  </code></pre>
  
  <p>I've seen the casting with <code>toLocal8bit</code> function, but whatever I try I just cannot adapt it to my code.</p>
  
  <p>Qt Creator shows this error:</p>
  
  <pre><code>error: conversion from 'const char [2]' to 'QChar' is ambiguous
  </code></pre>
  
  <p>in line with the <code>while</code> function call</p>