Is there something special about putting osgEarth's ViewerViewer
into a QMdiArea
? I created a QMdiArea
as central Widget (called setCentralWidget
) instead of taking osgEarth
's viewer directly as central widget.
QMdiArea *mdiArea = new QMdiArea(this);
setCentralWidget(mdiArea); // call to QMainWindows method, snippet is taken from app's MainWindow
mdiArea->addSubWindow(viewerWidget); // this doesn't work, globe is not drawn
Everything I tried didn't worked... except osgEarth's ViewerWidget
is set as central widget of my MainWindow
. Also tried MultiViewerWidget
without any success but because I need only one view the ViewerWidget
should be ok, or not?
I had a look into the examples but didn't succed to use one of them as starting point.
Any hints? Thank's in advance.