openscenegraph/osgQt

OsgQOpenGLWidget will not start properly after it is placed in the QT layout and setContentsMargins is set.

mirro187 opened this issue · 0 comments

pOsgW = new osgQOpenGLWidget;
layout = new QGridLayout(this);
layout->setContentsMargins(0,0,0,0);
layout->addWidget(pOsgW,0,0,100,100);
QObject::connect(pOsgW,&osgQOpenGLWidget::initialized,[this]
[
............
return 0;
]);