PDA

View Full Version : QTimer::singleShot in while



Ema
28th November 2019, 17:23
Hello, I have a problem with using QTimer::singleShot. When button is clicked, I would like to start blinking images and stop it with click on another button. Is QTimer right answer or should I used something else??

Lesiok
28th November 2019, 18:37
Not QTimer::singleShot but connect QTimer::timeout signal to the images blinking slot and call QTimer::start. After another button call QTimer::stop.

Ema
28th November 2019, 21:45
Thank you, now it works perfect. :)