title: QString Copying
body: <p>This question is probably very basic but today i came across an error saying</p>
  
  <p><strong>"error: passing 'const QChar' as 'this' argument of 'QChar&amp; QChar::operator=(const QChar&amp;)' discards qualifiers"</strong> </p>
  
  <p><em>"I don't know how does this assigment disqualifies string to string copying predefined by Qt ide".</em></p>
  
  <p>when i was copying required data from one string to another string using the following code</p>
  
  <pre><code>for(int i=reqposition;;i++)
  {
      if(data.at(i)==',')
          break;
  
      temp.at(j)=data.at(i);  // ERROR IS HERE
      j++;
  }
  </code></pre>
  
  <p>what is the problem in this code. Is there any other efficient way of copying data from one string from specified index to another string.
  How do i solve this problem.</p>
  
  <p>Thanks for your time!</p>