[Development] QSurface handle is NULL

Csaba Csernai csernai.csaba at gmail.com
Fri Dec 6 09:17:34 CET 2013


It is similar to that one, although a resize call won't solve it in my case.
But the situation is same as what David Eller wrote in his comment.
After a makeCurrent() call, QGLContext::currentContext() and
QGLWidget::context() won't be the same.

I forgot to mention that i use Win7, with msvc 11.0.

Best regards,
 Csaba


2013/12/5 Sean Harmer <sean.harmer at kdab.com>

> 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().
>
> Cheers,
>
> Sean
>
>
> --
> 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
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>



-- 
Csaba Csernai
C/C++ Software Developer
Mediso Medical Imaging Systems Ltd.
Hungary, H-1022 Budapest,
Alsótörökvész 14.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20131206/ba0b63d2/attachment.html>


More information about the Development mailing list