|
如题:将多视图显示在qt窗口中之后,怎么调节各个视图的显示区域?
osgEarth:tGui::ViewVector views;
osg::ref_ptr<osgViewer::ViewerBase> viewer;
osgEarth::QtGui::MultiViewerWidget* viewerWidget = new osgEarth::QtGui::MultiViewerWidget(root);
osgViewer::View* primary = viewerWidget->createViewWidget(root);
views.push_back(primary);
osgViewer::View* view = viewerWidget->createViewWidget(root, primary);
views.push_back(view);
setViewerWidget(viewerWidget, views);
viewerWidget中设置了2个视图,但是视图时使用layoutWidgets()自动布局的,显示出来两个视图一样大,我要怎么自由设置对应两个视图中其中一个视图很小并且覆盖在另一视图上面呢?
|
|