Results 1 to 5 of 5

Thread: How to compile script in QScriptEngine without calling evaluate function

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Re: How to compile script in QScriptEngine without calling evaluate function

    thanks. actually not just javascript, scripts are meant to compile and run at the same time. and i am not going to blame Qt, I just tried, may be i could get some other tool, i am a beginner don't know much abt qt.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: How to compile script in QScriptEngine without calling evaluate function

    I'm not talking about other languages, I'm talking about JavaScript. The same code can be valid now but be invalid next time you call it (or vice versa). There are no guarantees that can be made upfront. You can only do a syntax check which captures only the most trivial problems.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 2
    Last Post: 26th April 2012, 12:50
  2. Interrupting script evaluation of QScriptEngine
    By Haqim in forum Qt Programming
    Replies: 0
    Last Post: 15th July 2010, 14:38
  3. Calling QPrintDialog from script
    By rikardo in forum Qt Programming
    Replies: 0
    Last Post: 1st June 2009, 09:19
  4. Interpretting .pac script using QScriptEngine()
    By Saranakumardb in forum Qt Programming
    Replies: 1
    Last Post: 27th August 2008, 12:12
  5. term does not evaluate to a function
    By :db:sStrong in forum General Programming
    Replies: 6
    Last Post: 18th April 2007, 10:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.