Hi,

I know javascript doesn't have a sleep() per se, but I've tried using
the setTimeout() function, which I thought was standard, like so:

        setTimeout("console.log(\"foo\")", 1000)

This is the result:

        ReferenceError: Can't find variable: setTimeout

What is the recommended way to pause/sleep within a javascript block?

Thanks,
Alex
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to