Hi Arnaud and Wagner,<br><br>Thank's for the tips. Actually, I have already connected VTK and Qt. The problem is that I need to draw a free line over an image being displayed in the QVTKWidget, and by default, this widget controls the window/level parameters when the left button of the mouse is pressed.<br>
<br>Sorry for not being very clear, but my question is: How can I take the advantages of vtkImageTracerWidget and still display the image in a Qt window. Is it possible to use more than one widget at the same time?<br><br>
Thank's,<br>Luis<br><br><div class="gmail_quote">On Wed, Jan 28, 2009 at 10:36 AM, Wagner Sales <span dir="ltr"><<a href="mailto:wsales@gmail.com">wsales@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Luis,<br><br>Basically, QVTKWidget provides you a vtkRenderWindow with an interactor ( the last can be changed after ). <br>The VTK/Qt events are managed by vtkEventQtSlotConnect. Of course, if you wants, you can use callbacks like in VTK. Then, if you are developing in C++, take a look at examples in VTK/Examples/GUI/Qt/VTK/Examples/GUI/Qt/. This examples will help you how to acces the vtkRenderWindow and how to connect VTK and Qt. <br>
Your task are easy to do, but I developed with Qt and VTK, and the best way to learn ( at least to me ) are by the examples.<br><br><br>Regards,<br><br>Wagner <br><br><div class="gmail_quote">2009/1/28 Luis Roberto P. Paula <span dir="ltr"><<a href="mailto:luisrpp@gmail.com" target="_blank">luisrpp@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">Hi All,<br><br>I need to implement an image tracer, just like the one provided in VTK/Examples/GUI/Python/ImageTracerWidget.py, but I need to do it using Qt (QVTKWidget).<br>
<br>Does anybody knows how can I do that?<br><br>
Thanks in advance,<br><font color="#888888">Luis<br>
</font><br></div></div>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>
</blockquote></div><br>