Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
5.11.3
-
None
Description
QAbstractAnimation::stateChanged signal is declared the following way:
void QAbstractAnimation::stateChanged(QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
but in the class destructor there is:
if (d->state != Stopped) { QAbstractAnimation::State oldState = d->state; d->state = Stopped; emit stateChanged(oldState, d->state); if (oldState == QAbstractAnimation::Running) QAnimationTimer::unregisterAnimation(this); }
Parameters are passed vise versa, so in the listening slots we are handling the situation like animation just started - and getting an error trying to cast this animation to QVariantAnimation, for example.