<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Sounds like a problem with event processing based on widget focus.
Sorry for this generality which is probably not too helpful. But
speaking just a tad bit sarcastically, I think eventually the answer
you **might** get on this forum from a knowledgeable VTK person
(that's not me, sorry) will be "look at ParaView to see how things
are done with Qt there". So you might try that IMHO. :-)<br>
<br>
As for me, I am researching alternatives to Qt with VTK. I will be
trying IMGUI because it is "immediate mode" and hopefully will avoid
issues like this. The downside is that IMGUI widgets stink in terms
of appearance. Over all, Qt is by far the most polished and mature
UI toolkit out there in my experience (speaking as a self-rated Qt
expert, at least Qt4). But speaking a tad bit sarcastically again, I
think using VTK with any UI toolkit seems to have its fair share of
challenges and mysteries. I have posed a number of questions about
alternatives to Qt in this forum and have had no useful response.<br>
<br>
<div class="moz-cite-prefix">On 05/04/2018 04:01 PM, Sam Raby wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAM5z2s177Dw6K9gb9e56YNBLRguS8dq5HdQXdi58a=Sf4DWYcg@mail.gmail.com">
<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)"
moz-do-not-send="true">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"
moz-do-not-send="true">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" moz-do-not-send="true">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)">
</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">
</pre>
</div>
</div>
</div>
<br>
<br>
</div>
</div>
<br>
</div>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="https://vtk.org/mailman/listinfo/vtkusers">https://vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Paul D. Hahn
CompIntense HPC, LLC
</pre>
</body>
</html>