Hello all OSG users,

I found few issues by intergration OSG(2.2.0) with QT (4.3.3) :
The ViewerQT class from OSG-2.2.0 works well in the osqviewerQT.cpp 
example.
But when I add it to existing QT window, I have these problems:
- no keyboard actions are emitted to OSG, mouse works ok
- when resizing the MDI window to minimum (like with minimize button, 
but done as resizing) the scene disappears by resizing back.

I changed the osgviewerQT example by replacin the viewerWindow->show(); 
with these code:
-------------------------------------------
       ViewerQT* viewerWindow = new ViewerQT;
       viewerWindow->setCameraManipulator(new osgGA::TrackballManipulator);
       viewerWindow->setSceneData(loadedModel.get());

       QMainWindow* mw = new QMainWindow();
       QMdiArea* mdiArea = new QMdiArea(mw);
       mw->setCentralWidget(mdiArea);

       QMdiSubWindow *subWindow = mdiArea->addSubWindow(viewerWindow);
       subWindow->resize(200,100);
       subWindow->showNormal();
       subWindow->setWindowTitle("New Window");
       mw->show();
-------------------------------------------


I hope these problems are more OSG than QT related...

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

Reply via email to