{
connect(Timer, SIGNAL(timeout()), this, SLOT(Update()));
Timer->start(30);
}
void Stream::Update(){
ActualizarContadores();
if (IsFinal(streamUltimo)){
Timer->stop();
if(!Timer->isActive ()){
emit Finish();
}
}
}
Stream::Stream(QWidget *parent) :
QObject(parent)
{
Timer = new QTimer();
connect(Timer, SIGNAL(timeout()), this, SLOT(Update()));
Timer->start(30);
}
void Stream::Update(){
ActualizarContadores();
if (IsFinal(streamUltimo)){
Timer->stop();
if(!Timer->isActive ()){
emit Finish();
}
}
}
To copy to clipboard, switch view to plain text mode
Depending on OS and Hardware Finish signal () is issued more than once, ie on windows vista once it is issued is the idea of ​​2 or more consecutive xp.
Is there a mechanism to ensure that the signal is issued only once?
thanks
Bookmarks