Development/Tutorials/Plasma4/JavaScript/API-Timers: Difference between revisions
(Created page with '= QTimer = Read-write properties: * ''boolean'' '''active''': true if active, false if not * ''boolean'' '''singleShot''': true if the timer will fire once when started, false i...') |
|
(No difference)
|
Revision as of 23:27, 11 September 2014
QTimer
Read-write properties:
- boolean active: true if active, false if not
- boolean singleShot: true if the timer will fire once when started, false if it will fire repeatedly until stopped
- boolean interval: the interval in milliseconds that the timer will trigger
Functions:
- start(int msec): starts the timer with msec as the interval
- start(): starts the timer with the default interval
- stop(): stops the timer
Signals:
- timeout(): this signal is emitted whenever the timer interval is reached