title: Why is qStringList.indexof() is not functioning as expected?
body: <p>I have read the following into a qStringList variable from a .csv file
  This printout is from the debugger screen in QTcreator.  The [17] is the qstringlist index according to the debugger.  See the code snippet following.  When I request the indexof(&quot;Calcium&quot;) the function never finds Calcium.  It never finds any of the &quot;keys&quot;.<br />
  [17]    &quot;Calcium, Ca,269,mg,\r\n&quot;    QString</p>
  <pre><code>case CALCIUM:     // =  21,
   {
       if(strlist.indexOf(&quot;Calcium&quot;) == -1)
       {
            reply = -999;
       }else{
            reply = strlist.indexOf(&quot;Calcium&quot;);
       }
  
  
       break;
   }
  
  
     
          
  </code></pre>