User Tools

Site Tools


DzTimer

Script wrapper for QTimer.

More...

Inherits :

Properties

Constructors

DAZ Script
DzTimer ( QObject parent=undefined )

Methods

DAZ Script
voidstart ( Number msec )
voidstart ()
voidstop ()

Signals

voidtimeout ()

Detailed Description

Provides repetitive and single-shot timers.

Properties


Boolean : active

Holds whether the timer is running. (Read Only)


Number : interval

Holds the timeout interval in milliseconds; default is 0 - will time out as soon as all events in the window system's event queue have been processed.


Number : singleShot

Holds whether the timer is the type that runs only once; if false, timer runs every interval milliseconds.

Constructors


DzTimer( QObject parent=undefined )

Construct a timer with the given parent.

Methods


void : start( Number msec )

Starts, or restarts, the timer with a timeout interval of msec milliseconds. If the timer is already running, it will be stopped and restarted. If singleShot is true, the timer will be started only once.

Parameter(s):

  • msec - The duration, in milliseconds, for the timer to run.

void : start()

Starts, or restarts, the timer with a timeout interval of interval milliseconds. If the timer is already running, it will be stopped and restarted. If singleShot is true, the timer will be started only once.


void : stop()

Stops the timer.

Signals


void : timeout()

Signature:“timeout()”

Emitted when the timer times out.