<div dir="ltr">Good point guys!<br><br>Now its working.Just to keep it in the list archives for somebody else<br><br>Here is what I did<br><br>Added checkerwidget member in header file <br><br><font size="4"><span style="color: rgb(128, 128, 0);">private</span><span style="color: rgb(0, 0, 0);">:</span></font>
<pre style="margin: 0px; text-indent: 0px;"><font size="4"><span style="color: rgb(192, 192, 192);">    </span>Ui<span style="color: rgb(0, 0, 0);">::</span>Widget<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">*</span>ui<span style="color: rgb(0, 0, 0);">;</span></font></pre>

<pre style="margin: 0px; text-indent: 0px;"><font size="4"><span style="color: rgb(192, 192, 192);">    </span><span style="color: rgb(51, 204, 0);">vtkCheckerboardWidget* checkerWidget;<br><br><span style="color: rgb(0, 0, 0);">and <br>
<br></span></span></font><span style="color: rgb(192, 192, 192);"> </span><font style="color: rgb(51, 204, 0);" size="4">this-&gt;checkerWidget =vtkCheckerboardWidget::New</font><span style="color: rgb(0, 0, 0);"><font style="color: rgb(51, 204, 0);" size="4">();</font><font size="4">in the source file</font></span><br>
</pre>
<pre style="margin: 0px; text-indent: 0px;"><font size="4"><br></font></pre>Correct if I am wrong. I am just started to learn c++.<br><br>Thanks,<br><br>Jothy<br><br><div class="gmail_quote">On Tue, Aug 10, 2010 at 4:25 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Tue, Aug 10, 2010 at 11:22 AM, Eric E. Monson &lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt; wrote:<br>

&gt; Yup, I think David is right. I was able to get the widget and handles to stay around by making the widget a member variable of the window (Qt) class.<br>
&gt;<br>
&gt; -Eric<br>
<br>
</div>Here is an example of what we are talking about:<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Qt/BorderWidget" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Qt/BorderWidget</a><br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br></div>