Quote Originally Posted by ctgrund View Post
1) First we have to copy the tree somehow to script variables? What is the strategy and which of the QT-examples ist most approbiate?
You can either "copy" the data into new objects or you can expose your existing objects in form of ecmascript api. It mainly depends if you intend to modify those objects from the script. If not, copying should be easier - just create a bunch of objects (using newObject()) and assign properties to them.

3) With a call to JavaScript F(Tree.f) can I change Tree.f or is this read only?
It depends on how you solve issue #1 and also what the function signature is.

4) After Tree.f.s.a = 4, how can I copy data from JavaScript to C++-Tree without having to copy all data?
You can either resynchronize the two object groups manually or you just wrap your real objects into script api as said in the beginning.

Is there some signal when a JavaScript variables changes or somethin similar?
No.