[vtkusers] Find out which qVtkWidget the mouse is over
David Doria
daviddoria at gmail.com
Tue May 28 07:56:01 EDT 2013
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
More information about the vtkusers
mailing list