Class qt.QTimer is a subclass of qt.QObject associated with Qt objects of class QTimer. Please see the Qt documentation for class QTimer for an explanation of the available slots, signals and properties.

Example:

require 'qt'
timer = qt.QTimer()
timer.singleShot = true
qt.connect(timer,'timeout()', function() print("timeout") end)
timer:start(2000) -- wait for 2 seconds...

Subsections

  1. qt.QTimer(parent)