I have a timer. When I call
timer->start(N)
I want first the timer's slot to be launched and then to wait N milliseconds for re-launching its slot. How can I do this?
I have a timer. When I call
timer->start(N)
I want first the timer's slot to be launched and then to wait N milliseconds for re-launching its slot. How can I do this?
When you 're trying to help somebody in the newbie section, don't forget that he is a newbie. Be specific and give examples.
If I understood you correctly, you simply don't want to wait the first N msec before timer timeouts() ? What about launching the slot yourself ?
Correct me if I misunderstood something.Qt Code:
connect(timer, SIGNAL(timeout()), this, SLOT(update())); this->update(); timer->start(N);To copy to clipboard, switch view to plain text mode
Last edited by stampede; 11th February 2011 at 19:10. Reason: typo
hakermania (11th February 2011)
What a silly question
When you 're trying to help somebody in the newbie section, don't forget that he is a newbie. Be specific and give examples.
Bookmarks