You could add another QTimer instead (QTimer::isActive is exactly analogous to what this bool represents since you set it when you start your timer and clear it when the timer expires).