Results 1 to 2 of 2

Thread: Evaluation of one QtScript from within another

  1. #1
    Join Date
    Feb 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Evaluation of one QtScript from within another

    Can I 'evaluate' one QtScript .js file from within another?

    The only way I have found is to write a native C++ function that reads a file and returns a string, export this function to QtScript, then "eval" the string within the QtScript. Just wanted to check I wasn't missing some obvious 'dofile' method in QtScript.

    This is for an application that makes heavy use of QtScript, allowing (technical!) users to develop complex scripted environments involving multiple files and functions.

    Thanks

  2. #2
    Join Date
    Feb 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Evaluation of one QtScript from within another

    Answering my own question a few months later, there is an example of how to do this in the QScriptContext Class Reference - just a case of knowing where to look.

Similar Threads

  1. Replies: 0
    Last Post: 25th November 2009, 07:46
  2. QtScript evaluation question
    By QPlace in forum Qt Programming
    Replies: 0
    Last Post: 22nd October 2009, 03:46
  3. Graphic evaluation
    By jd in forum Qt Programming
    Replies: 3
    Last Post: 7th February 2008, 14:46
  4. QT 4.2.3 evaluation
    By steg90 in forum Qt-based Software
    Replies: 5
    Last Post: 30th May 2007, 14:47
  5. license key for evaluation version of Qt4.2
    By nimmyj in forum Installation and Deployment
    Replies: 2
    Last Post: 5th December 2006, 12:12

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.