OSGViewer in Qt's TabWidget
问题 I am using OpenSceneGraph 3.0.1 and having a problem with the Qt integration using the osgQt::GLWidget when adding it to a tab control during startup (inside the constructor of my main window. MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); QWidget* viewerWidget = new MyViewerWidget(new osgViewer::Viewer()); ui->tabWidget->addTab(viewerWidget, "My Osg View"); // tab entry was added but nothing to see than empty Osg Window } It works,