Qt 6.11 is out! See what's new in the release
blog
Block user input for the time of animation
General and Desktop
4
Posts
2
Posters
2.0k
Views
1
Watching
-
Hi there!
In my application I have to block user input in the scene for the time of an animation. What is the best way to do that?
Thanks in advance! -
it says i cannot redefine these signals, where exactly should i put these?
-
[quote author="zurbek" date="1367224315"]it says i cannot redefine these signals, where exactly should i put these?[/quote]
You don't need to overload them, you just can connect them to your slots. Wide example:
@
..
connect(animatiorInstance, &AnimationClass::animationStarted,
this, &MainWindow::animationStarted);
connect(animatiorInstance, &AnimationClass::animationFinished,
this, &MainWindow::animationFinished);
..void MainWindow::animationStarted()
{
;
}void MainWindow::animationFinished()
{
;
}
@