[vtkusers] Find out which qVtkWidget the mouse is over

tao sun colddiesun at gmail.com
Tue May 28 08:29:39 EDT 2013


Hi,

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?


Thanks,
Sun Tao



2013/5/28 David Doria <daviddoria at gmail.com>

> On Fri, May 24, 2013 at 6:46 AM, tao sun <colddiesun at gmail.com> wrote:
> > Hi,
> >
> >
> > I have three qVtkWidgets to display in one Qt Window. Now I want to find
> a
> > way to identify the which Widgets the mouse is over when mouseMove event
> > triggers. Any ideas?
> >
> > Thanks,
> > Julio
>
> How are you handling mouseMove? If it is in a member function of a
> vtkInteractorStyle* subclass, then by using a different instance of
> your subclass for each QVTKWidget you should be able to tell which one
> you are in (using the 'this' pointer, or a custom member variable).
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130528/786b3067/attachment.htm>


More information about the vtkusers mailing list