<div dir="ltr">Let me rephrase the issue that I am observing. I run the following vtk example that uses QVTKOpenGLWidget in Qt Creator. I can successfully run the example. Then I added one simple QCheckBox to UI. I can compile the code but the checkbox does not respond to mouse clicking, meaning that If I click on the checkbox it does not get checked, but if I interact with the <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">QVTKOpenGLWidget it causes the checkbox to be updated. Is that a bug? because what I am doing seems pretty basic.</span><div><br></div><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;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt" target="_blank" style="color:rgb(17,85,204)">https://www.vtk.org/Wiki/VTK/E<wbr>xamples/Cxx/Qt/SideBySideRende<wbr>rWindowsQt</a></div><br></div><div>Thanks<br><br><br>On Friday, May 4, 2018, Sam Raby <<a href="mailto:rabysam28@gmail.com" target="_blank">rabysam28@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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-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);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-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;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-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);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-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="https://www.vtk.org/Wiki/VTK/Examples/Cxx/Qt/SideBySideRenderWindowsQt" target="_blank">https://www.vtk.org/Wiki/VTK/E<wbr>xamples/Cxx/Qt/SideBySideRende<wbr>rWindowsQt</a></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">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-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);float:none;display:inline">QVTKOpenGLWidget<span> </span></span><span style="font-family:arial,sans-serif;font-size:small;font-style: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);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><br></div>
</div><br></div>
</blockquote>
</div></div>