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.
Bookmarks