Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2012

    [moved] Why some of JavaScript's statements don't work in Qt?

    I tried to use setInterval(); and setTimeout(); in a JavaScript file that I imported in my project, but the don't work! Why? What kind of JavaScript's statement do work in Qt?

  2. #2
    Registered User
    Join Date
    Sep 2011

    Re: [moved] Why some of JavaScript's statements don't work in Qt?


    mostly it works, i am not sure if there is any such documented list that works or that doesnt work. anyone who have an idea on that can post it here.

    btw, for your issue, there is some discussion already here, pasted some below

    Technically setTimeout is a member of the window object (you should
    write window.setTimeout, but the window object is implicit)

    That's why setTimeout doesn't work in QML. There is no windows object.
    Same thing for alert(), for example.

    Not that this helps solving your problem, but at least I hope it helps
    you understand why you can't do some things in QML as you do in JS

Similar Threads

  1. If statements in while looping
    By McLightning34 in forum Symbian
    Replies: 7
    Last Post: 2008-10-14, 14:13
  2. SQL join statements in 3rd edition MR
    By iulian_moldovan in forum Symbian
    Replies: 14
    Last Post: 2007-07-09, 13:51
  3. SQL JOIN statements in PythonS60?
    By andrew_ramsay in forum Symbian
    Replies: 1
    Last Post: 2006-12-28, 12:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts