Results 1 to 8 of 8

Thread: QTScript - getting the name of a QScriptValue

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jun 2009
    Posts
    13
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    4

    Default Re: QTScript - getting the name of a QScriptValue

    thanks for the useful post,

    well i was not interested in a specific getName() function, this was only an example to demonstrate how the code works.
    i'm not interested in specific properties of the qobjects (like the simulation), i have to know the names of the objects/scriptvalues which the parser is creating at runtime. like in the example
    mysimulation = getSimulation("")
    so mysimulation is a qobject consisting of various data

    success = mysimulation.isOpen()
    a qscriptvalue (actually a bool) which can be used with the name "success"

    mysimulation.newFunction()
    the "newFunction()" in this case would have to know that it is called with the prefix "mysimulation", not the object but only the string of its dynamically generated name.

    or did you understand what i mean and i didn't?
    the simulation class is not a child of QObject, the getSimulation function converts the information in the simulation class to a QObject.
    Last edited by android_; 28th October 2009 at 12:31.

Similar Threads

  1. QtScript: default constructor question
    By QPlace in forum Qt Programming
    Replies: 1
    Last Post: 22nd October 2009, 19:36
  2. QtScript evaluation question
    By QPlace in forum Qt Programming
    Replies: 0
    Last Post: 22nd October 2009, 03:46
  3. QScriptValue with simple typedef types
    By JohannesMunk in forum Newbie
    Replies: 9
    Last Post: 14th May 2009, 15:07
  4. QtScript Binding problem with QWidget
    By zack in forum Qt Programming
    Replies: 3
    Last Post: 17th February 2009, 09:38
  5. QtScript Q_ENUM problem
    By oc2k1 in forum Qt Programming
    Replies: 0
    Last Post: 14th May 2007, 16:07

Tags for this Thread

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.