podsvirov / osgqtquick

Intergation OpenSceneGraph to Qt Quick
https://podsvirov.github.io/osgqtquick
MIT License
72 stars 32 forks source link

how can i get osgViewer ptr? #25

Closed ironjie closed 5 years ago

ironjie commented 5 years ago

i want use c++ code add some feature, in this way, it must get osgviewer pointer, how can i get it?

podsvirov commented 5 years ago

Try:

osgQtQuick::Window::fromWindow(window)->viewer()

where window is pointer to your QQuickWindow.

podsvirov commented 5 years ago

Hello @ironjie, have you solved your problem?