QAbstractButton has an auto replay feature that you can enable:
button->setAutoRepeat(true);
This will repeat the pressed (), released (), and clicked () signals. You can also specify how often signals are emitted ( setAutoRepeatInterval ), and how long the button waits before it starts emitting them ( setAutoRepeatDelay ).
Daniel gallagher
source share