<div dir="ltr">Hi,<div><br></div><div style>I overload mouseEvents as functions of the vtkInteractorStyleImage subclass. Do you mean I should name a member to indicate the current interactor and QVtkWidget? How could a slot function of the mouseevent know that which QvtkWidget's interactor call it?</div>
<div style><br></div><div style><br></div><div style>Thanks,</div><div style>Sun Tao</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/28 David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Fri, May 24, 2013 at 6:46 AM, tao sun <<a href="mailto:colddiesun@gmail.com">colddiesun@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
><br>
> I have three qVtkWidgets to display in one Qt Window. Now I want to find a<br>
> way to identify the which Widgets the mouse is over when mouseMove event<br>
> triggers. Any ideas?<br>
><br>
> Thanks,<br>
> Julio<br>
<br>
</div></div>How are you handling mouseMove? If it is in a member function of a<br>
vtkInteractorStyle* subclass, then by using a different instance of<br>
your subclass for each QVTKWidget you should be able to tell which one<br>
you are in (using the 'this' pointer, or a custom member variable).<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>