title: Qt- change QStringList element
body: <p>I have <em>groupProfpic</em> as QStringList. I'v added the same photo to all of element</p>
  
  <pre><code>for (int k=0 ; k&lt;4 ; ++k)
      groupProfpic.append(":/images/person.png");
  </code></pre>
  
  <p>If each person has profile picture ,default profile picture(<em>":/images/person.png"</em>) will replace to his/her profile picture. </p>
  
  <pre><code>   for (int i=0 ; i&lt;nicknamesList.size() ; ++i)
          {
              query1.prepare("SELECT profpic FROM muc_members WHERE nickname=? LIMIT 4");
              query1.addBindValue(nicknamesList[i]);
              query1.exec();
              if(query1.next())
              {
                  groupProfpic[i] = query1.value(0).toString();
              }
  </code></pre>
  
  <p>but it's not working. How to fix it?</p>