Hi All,
I'm experiencing an issue that seems related to the size of a osgQt::GLWidget. 
Since my case it is pretty hard to explain, first of all I would like to know 
if it is correct to completely override the 
QGLWidget::resizeEvent(QResizeEvent*) implementation. In fact, in a previous 
implementation of an AdapterWidget (derived from QGLWidget and embedding a 
osgViewer::GraphicsWindow) resizeGL(w, h) was reimplemented instead of 
resizeEvent(). Both methods are virtual of QGLWidget but resizeGL() is called 
by QGLWidget::resizeEvent(). The latest also does something more:


Code:
void QGLWidget::resizeEvent(QResizeEvent *)
{
    Q_D(QGLWidget);
    if (!isValid())
        return;
    makeCurrent();
    if (!d->glcx->initialized())
        glInit();
    resizeGL(width(), height());
    if (d->olcx) {
        makeOverlayCurrent();
        resizeOverlayGL(width(), height());
    }
}



That means osgQt::resizeEvent() implementation overrides the original code of 
QGLWidget. Is that really not necessary and can be correctly skipped?

Regards,
Gianni

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52955#52955





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

Reply via email to