Hi Sanat,

Maybe you should use Qt's Model View Controller framework. It is a lot more 
complex than the Tree Widget, but also gives a lot more possibilities. You 
could write a QAbstractItemModel that directly accesses the live scene graph. 
You would have to inform the model of changes to your scene graph - added or 
removed items. You can set links to OSG nodes as InternalPointer in your 
QModelIndex objects.

Mind you: Representing the scene graph as a tree will only work if there are no 
nodes with multiple parents!

Cheers,
Martin

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42173#42173





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to