<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Hi </span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>I had the same similar issue, I was using a parent widget, with buttons and a frame with a child qglwidget derived class.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">What I did was to create a
 method in the child qglwidget derived class to initialize the shaders, and I only calls this method inside the showEvent() of the parent widget class.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Regards</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Joao de Deus</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style:
 normal;"><br></div><div class="yahoo_quoted" style="display: block;"> <br> <br> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> Em Sexta-feira, 29 de Novembro de 2013 6:58, Csaba Csernai <csernai.csaba@gmail.com> escreveu:<br> </font> </div>  <div class="y_msg_container"><div id="yiv1366922902"><div dir="ltr"><div><div>Hi everyone!<br><br></div>I would like to ask your help in some Qt 5 matter. I think it's somewhat related to QTBUG-31451, but not sure.<br><br></div>When I create a QGLWidget with a parent which not yet visible, then it seems to fail to compile shaders although QGLContext is valid( at least the isValid function returns true).<br>

<div><div><div><div><div><div><div><div>e.g.: there is a tab widget, which is visible, and from code we add another tab, so that it contains a QWidget and inside the QWidget, there is a QGLWidget( yeah, i kno w it's messed up, but that's it). So when we create the QGLWidget with the QWidget parent, the QWidget is not visible, and - as far as i discovered - it has no window handle.<br>
<br>It worked fine, in 4.8, and i compile with msvc 11.0.<br>
<br></div><div>My question is that is it a bug or did I miss something? Would someone point me in the right direction?Should i post my findings to the mentioned bug thread or create a new one?<br><br></div><div></div><div>
Thanks. <br>
</div><div>Bye,<br><br><div>-- <br>Csaba Csernai<br>C/C++ Software Developer<br>Mediso Medical Imaging Systems Ltd.<br>Hungary, H-1022 Budapest,<br>Alsótörökvész 14.<br>
</div></div></div></div></div></div></div></div></div></div></div><br>_______________________________________________<br>Development mailing list<br><a ymailto="mailto:Development@qt-project.org" href="mailto:Development@qt-project.org">Development@qt-project.org</a><br><a href="http://lists.qt-project.org/mailman/listinfo/development" target="_blank">http://lists.qt-project.org/mailman/listinfo/development</a><br><br><br></div>  </div> </div>  </div> </div></body></html>