<div dir="ltr"><div class="gmail_quote"> <br><br><div dir="ltr"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">I am running the following example of using </span><span style="font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;color:rgb(128,0,128)">QVTKOpenGLWidget </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">to display a sphere. </span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt" target="_blank">https://www.vtk.org/Wiki/VTK/<wbr>Examples/Cxx/Qt/<wbr>SideBySideRenderWindowsQt</a></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">It works fine. Then I added one QT Checkbox. but the checkbox is not checkable. After debugging I realized that when I remove the following line of code, the checkbox starts working but <span style="color:rgb(128,0,128);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">QVTKOpenGLWidget<span> </span></span><span style="font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">does not display the sphere anymore. Is that something that I am missing here. QSlicer and other qwidgets also do not work if I keep the following like of code:</span><div><div><br></div><div><pre style="margin:0px;text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">QSurfaceFormat</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">setDefaultForm<wbr>at</span><span style="color:rgb(0,0,0)">(</span><span style="color:rgb(128,0,128)">QVTKOpenGLWidget</span><span style="color:rgb(0,0,0)">::</span><span style="color:rgb(0,0,0)">defaultFo<wbr>rmat</span><span style="color:rgb(0,0,0)">());</span></pre><pre style="margin:0px;text-indent:0px"><span style="color:rgb(0,0,0)"><br></span></pre><pre style="margin:0px;text-indent:0px"><span style="color:rgb(0,0,0)">Thanks</span></pre><pre style="margin:0px;text-indent:0px"><span style="color:rgb(0,0,0)">S</span></pre><pre style="margin:0px;text-indent:0px"><br></pre></div></div></div><br class="m_7151008535480101469gmail-Apple-interchange-newline"><br></div>
</div><br></div>