Andre4e
20th February 2012, 20:38
i have this code:
void myclass::on_btn_slot()
{
QPropertyAnimation *a = new QPropertyAnimation( ui->btn , "geometry" );
a->setStart.....
a->setEnd....
a->setDuration...
a->setLoopCount....
a->start(QAbstractAnimation::Delete....);
}
Once that animation is playing, how can I disable the call of the slot?
Because then if I click during animation, this resets.
I do not want to disable the button and I seek a solution that allows me
handle everything in this method / slot
i thinked to use a boolean but i should to connect the finish signal of animation with a method
void myclass::on_btn_slot()
{
QPropertyAnimation *a = new QPropertyAnimation( ui->btn , "geometry" );
a->setStart.....
a->setEnd....
a->setDuration...
a->setLoopCount....
a->start(QAbstractAnimation::Delete....);
}
Once that animation is playing, how can I disable the call of the slot?
Because then if I click during animation, this resets.
I do not want to disable the button and I seek a solution that allows me
handle everything in this method / slot
i thinked to use a boolean but i should to connect the finish signal of animation with a method