title: Copying values to and from QStringList to QString Array[]
body: <p>In my C++ GUI program, I am storing a sequence of text ( e.g. option1,option2,option3,option4,option5,option6) in the QString Array[6].</p>
  
  <p>Now, I want to pass this values (i.e. all 6 of them through various functions / signals / slots) as and when required and operate on them individually.</p>
  
  <p>But since QString array[] can not be passed in such a way between functions, I am planning to use QStringList.</p>
  
  <p>Now, I have loaded my array[6] with the values and I am doing the following to copy them;</p>
  
  <pre><code>QStringList mylist;
  
  for(int i=0;i&lt;6;i++)
  {
      mylist &lt;&lt; array[i];
  }
  QString item;
  foreach(item, mylist);
  qDebug()&lt;&lt;"The QSTRINGLIST IS "&lt;&lt;item;
  
  qDebug()&lt;&lt;"The order of options (L-R) " &lt;&lt; array[0] &lt;&lt; array[1] &lt;&lt; array[2] &lt;&lt; array[3] &lt;&lt; array[4] &lt;&lt; array[5];
  </code></pre>
  
  <p>So ideally both the qDebugs should give same response right ??? but in my case the qDebug of QStrinList is returning only the last value (e.g. option6).</p>
  
  <p>Where am I doing wrong ???</p>
  
  <p>In my consequent planning I am planning to perform the reverse i.e. QStringList to QStrin array[] as well, any insights would be very helpful.</p>