Preet <[email protected]> writes:

> Hey all.
>
> I have an OpenSceneGraph tree I'd like to have displayed in QtQuick.
> I'd like the user to be able to interact with the scene where the
> mouse can zoom/pan/rotate the camera, just like osgViewer allows. I
> saw that there were a couple of examples (osgQtWidgets and
> osgQtBrowser), but they're a little over my head.
>
> I think the right way to start trying this is by starting with the
> QtDeclarative model
> (http://doc.qt.nokia.com/4.7-snapshot/qtdeclarative.html)... but I'm
> not too sure where to go from here. Does anyone have any suggestions?
>
> Regards,
>
> Pris

Hi Preet,

I've looked into integrating OpenSceneGraph into QML. You might want to
start with the osgviewerQt to get started with a viewer integrated into
Qt. Then you should have a look at [1] to see how you can expose your
osg widget to QML. If I ever get something reusable up and running, I'll
let the list know. If you go down the route of exposing scene graph
functionality in your Qt application you will need to roll some
implementation of QAbstractItemModel, which is a real pain. It get's
easier if you restrain yourself to graphs where each element only has a
single parent. If you can throw something together I would be really
interested in it, so let me know.

[1] : 
http://developer.qt.nokia.com/doc/qt-4.8/gettingstartedqml.html#exposing-c-classes-to-qml

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

Reply via email to