I wish to connect the slider with the iterator position(i.e. if the slider is pressed/released, the the image should be displayed accordingly)............ I can make a connect(localSlider,SIGNAL(sliderReleased()),..... ....) .....in the SLOt function I'll call localSlider->value() and accept the integeral value of the index of sldier value..............but how would I set the localIterator's position accordingly????
Below is a very simple to understand code snippet...


//CODE:

void VideoDisplayer:assFileNameToVideoLabel(QStringList fileName,QStringListIterator *iterator,QSlider *slider)
{
timer = new QTimer;
temp = fileName;
localIterator = iterator;
localSlider = slider;
}


void VideoDisplayer:layVideo()
{
connect(timer, SIGNAL(timeout()),this, SLOT(nextPicture()));
timer->start(1000);
}


void VideoDisplayer::nextPicture()
{
if(localIterator->hasNext())
{
videoLabel->setPixmap(QPixmap(localIterator->next()));
videoLabel->adjustSize();
videoLabel->setScaledContents(true);
//localSlider->setValue();
localSlider->setValue(temp.indexOf(localIterator->peekPrevious()));
//label->show();
}
else
{
disconnect(timer, SIGNAL(timeout()),this, SLOT(nextPicture()));

timer->stop();
localIterator->toFront();
localSlider->setValue(0);

}
}