|Home | Tutorial | Classes | Functions | QSA Developer | Language | Library | Qt API | QSA Articles Qt Script for Applications

[Prev: parseInt()] [Home] [Next: Built-in Operators]

startTimer()

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-2003 TrolltechTrademarks
QSA version 1.0.0-beta2