I want to make this loop once it hits the last file in the list how would i go about doing so thanks
Qt Code:
  1. void mediazone::slide()
  2. {
  3. if(iterator->hasNext())
  4. {
  5. picture->clear();
  6. picture->setPixmap(QPixmap(iterator->next()));
  7. picture->show();
  8. }
  9. else
  10. {
  11. iterator->toFront();
  12. }
  13. }
To copy to clipboard, switch view to plain text mode