[Development] QSurface handle is NULL

Sean Harmer sean.harmer at kdab.com
Thu Dec 5 17:47:02 CET 2013

On 05/12/2013 14:56, Csaba Csernai wrote:
> Hi everyone!
> I am working on a project, which uses openGL, but there is some glitch 
> when i create a new instance of QGLWidget. It seems that somehow the 
> QSurface::surfaceHandle() returns NULL, thus can't make the context 
> active.
> Can anyone suggest when can this handle NULL?

Is it this bug https://bugreports.qt-project.org/browse/QTBUG-35342 ?

If so, work around is to add an explicit resize() before show().



Dr Sean Harmer | sean.harmer at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutions

More information about the Development mailing list