Hi Witold,
I don’t know any clever way when you can incorporate some Qt magic to do it, can propose something less sophisticated.
I would suggest to have an object which holds state of every animation and listens to all animation stop signals, or each animation onStopped
listener logic can inform that object instead.
That object would have some bool properties, every time it receives an “info” from animation, that it stopped, it can check if all it’s bool properties are true.
I assume properties can be like firstAnimatinoStopped: false; secondANimationStopped: false
) etc.
Once, at last, last animation in the order fires “stopped” signal, last object property goes to true what means all animations have stopped.
There are variations how you can do it from technical point of view, which side sends custom signals or execute which function.
If you have limited amount of animations just having bool property for each can be enough.
If it’s more dynamic nature the listener object can have an array of animation states which can be dynamically changed(registered), etc.
I am not sure how many objects/animations are involved etc so solution depends on your case.