| Tutorial | Classes | Functions | QSA Developer | Language | Library | Qt API | Qt Script for Applications | ![]() |
[Prev: parseInt()] [Home] [Next: Built-in Operators]
var timerId = startTimer( interval, timeoutFunction )
Creates a new timer. The timer's id is returned, although it isn't needed if you use killTimers(). The timer will call the timeoutFunction every interval milliseconds.
Typically startTimer() is called in a form's init() function, with the timeoutFunction declared as a slot within the form.
For forms which use timers, it is good practice to create a destroy() function that contains a killTimers() statement.
[Prev: parseInt()] [Home] [Next: Built-in Operators]
Copyright © 2001-2002 Trolltech | Trademarks | QSA version 1.0.0-beta1
|