So im making a picture loop but seem to be a little stuck
in main
sClientz2_300_300Data = _myParse->getClientz2_300_300();
z2_300_300
= new QLabel(this);
z2s1_Iterator = new QStringListIterator(sClientz2_300_300Data);
z2_300_300
->setGeometry
(QRect(781,
34,
475,
360));
QTimer::singleShot(0,
this,
SLOT(startZ2S1
()));
sClientz2_300_300Data = _myParse->getClientz2_300_300();
z2_300_300 = new QLabel(this);
z2s1_Iterator = new QStringListIterator(sClientz2_300_300Data);
z2_300_300->setGeometry(QRect(781,34,475,360));
QTimer::singleShot(0,this, SLOT(startZ2S1()));
To copy to clipboard, switch view to plain text mode
startZ2S1()
if(z2s1_Iterator->hasNext())
{
z2_300_300->clear();
z2_300_300
->setPixmap
(QPixmap("/ttm/images/" + z2s1_Iterator
->next
()));
z2_300_300->show();
}
if(!z2s1_Iterator->hasNext())
{
z2s1_Iterator->toFront();
}
emit doneZ2S1();
if(z2s1_Iterator->hasNext())
{
z2_300_300->clear();
z2_300_300->setPixmap(QPixmap("/ttm/images/" + z2s1_Iterator->next()));
z2_300_300->show();
}
if(!z2s1_Iterator->hasNext())
{
z2s1_Iterator->toFront();
}
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?
Bookmarks