<div dir="ltr">I suspect there's a bug in Qt when it comes to reparenting QOpenGLWidget. I can reproduce an issue with ParaView on linux when I simply undock the Color Map Editor and then redock it. The Color/Opacity widgets stay black. Looking at the code, I see this [1] happens when the dock widget is docked back into the main window. As expected the OpenGL context is destroyed, and QVTKOpenGLWIdget correctly does the cleanup. But the QVTKOpenGLWidget never gets a follow on paintGL call (unless I mouse over to resize the dock panel manually). Thus QVTKOpenGLWidget new repaints into the newly minted OpenGLContext/FBO resulting in a black widget.<div><br></div><div>Utkarsh</div><div><br></div><div>[1] <a href="https://code.woboq.org/qt5/qtbase/src/widgets/kernel/qopenglwidget.cpp.html#1418">https://code.woboq.org/qt5/qtbase/src/widgets/kernel/qopenglwidget.cpp.html#1418</a></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 29, 2017 at 11:06 AM, Marcus D. Hanwell <span dir="ltr"><<a href="mailto:marcus.hanwell@kitware.com" target="_blank">marcus.hanwell@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, May 29, 2017 at 9:32 AM, Elvis Stansvik<br>
<<a href="mailto:elvis.stansvik@orexplore.com">elvis.stansvik@orexplore.com</a>> wrote:<br>
><br>
> 2017-05-29 15:26 GMT+02:00 Sebastien Jourdain <<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.<wbr>com</a>>:<br>
> > You need to set the size on the interactor.<br>
><br>
> Ah, how do I do that? (sorry for being a bit dumb)<br>
><br>
> I've been scouring over the PV code, and I can't see that it does<br>
> anything special with its interactor. It seems to just hook it up:<br>
><br>
</span>I assume you are using QVTKOpenGLWidget, we use this directly in<br>
Tomviz for a few charts that control color/opacity too. This should be<br>
handled in the QVTKOpenGLWidget, but it is possible an initialization<br>
bug has crept in. I have noticed that ParaView often doesn't see this<br>
issues as much due to resizing Qt widgets several times on startup, I<br>
will see if I can get some time to test the latest Tomviz (we had this<br>
working, but I haven't been tracking VTK master as closely these last<br>
few weeks).<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtk-<wbr>developers</a><br>
<br>
</div></div></blockquote></div><br></div>