hakermania
11th February 2011, 18:46
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?
stampede
11th February 2011, 19:09
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 ?
QTimer *timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(update()));
this->update();
timer->start(N);
Correct me if I misunderstood something.
hakermania
11th February 2011, 19:48
What a silly question :p
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.