So im making a picture loop but seem to be a little stuck
in main
Qt Code:
  1. sClientz2_300_300Data = _myParse->getClientz2_300_300();
  2.  
  3. z2_300_300 = new QLabel(this);
  4. z2s1_Iterator = new QStringListIterator(sClientz2_300_300Data);
  5. z2_300_300->setGeometry(QRect(781,34,475,360));
  6. QTimer::singleShot(0,this, SLOT(startZ2S1()));
To copy to clipboard, switch view to plain text mode 

startZ2S1()
Qt Code:
  1. if(z2s1_Iterator->hasNext())
  2. {
  3. z2_300_300->clear();
  4. z2_300_300->setPixmap(QPixmap("/ttm/images/" + z2s1_Iterator->next()));
  5. z2_300_300->show();
  6. }
  7. if(!z2s1_Iterator->hasNext())
  8. {
  9. z2s1_Iterator->toFront();
  10. }
  11. emit doneZ2S1();
To copy to clipboard, switch view to plain text mode 

the problem i am having is getting this to display the first one only and dont display the next one untill this function is called again

how would i be able to modify my code to do the above?