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....);
}
void myclass::on_btn_slot()
{
QPropertyAnimation *a = new QPropertyAnimation( ui->btn , "geometry" );
a->setStart.....
a->setEnd....
a->setDuration...
a->setLoopCount....
a->start(QAbstractAnimation::Delete....);
}
To copy to clipboard, switch view to plain text mode
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
Bookmarks