[Qt-interest] script application with qtscript
kaolite
kaolite at gmail.com
Sat Nov 28 22:57:14 CET 2009
Hi,
I plan to add qtscript support to an application. I have a tree structure of
data ...
for exemple Forest -> that contains list of tree -> each tree contains list
of leaf... each object (forest, tree, leaf has a collection of property ...
available in a list). I need to be able to access the entire structure to
read or modify property of object with a syntax like this
forest.tree[10].leaf[5].color=red; or forest.tree[12].height=3; (I wants to
pass as global object forest to the script) ...
Is it possible to do that ? Do I need to use a QList to contains for exemple
tree QList<Tree*> TreeList; ? or can I use a Qhash ?
best regards,
kao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091128/b8b3e39f/attachment.html
More information about the Qt-interest-old
mailing list