Recently I have faced a problem. I need to have QTimer set up to run a specified number of times. Is there a way to do so without using additional variable? If there is not, which way most concise? Thanks)
Hi and welcome to devnet,
AFAIK, there's not. You can use a simple counter that you increment on each timeout but don't forget to reset it before starting your timer.
@SGaist thanks for your reply) Now I'm at least sure that this approach is ok) thanks again for welcome)