[Qt-qml] Sleeping in javascript

Alex alexlordax+qt at gmail.com
Thu Sep 30 20:41:46 CEST 2010


On Mon, Sep 27, 2010 at 6:59 PM, Gregory Schlomoff
<gregory.schlomoff at gmail.com> wrote:
>> I know javascript doesn't have a sleep() per se, but I've tried using
>> the setTimeout() function, which I thought was standard,
>
> Technically setTimeout is a member of the window object (you should
> write window.setTimeout, but the window object is implicit)
>

Thanks, Greg.  I had mistakenly assumed that the current QML object
was a "window" in javascript terms.

Cheers,
Alex



More information about the Qt-qml mailing list