I tried this snippet suggested elsewhere on SO:
var timer = new QTimer();
timer.interval = 100; // set the time in milliseconds
timer.singleShot = true; // in-case if setTimout and false in-case of setInterval
timer.timeout.connect(this, function(){console("in setTimout")});
timer.start();
Result:
ReferenceError: Can't find variable: QTimer
Is there anything I need to set up for timers to work?