[vtkusers] QVTKWidget mouse event detection

Clinton Stimpson clinton at elemtech.com
Mon Mar 30 14:23:08 EDT 2009


You can use any method explained in the Qt documentation, or have a look 
at the VTK documentation for vtkInteractorStyle.

Handling events with vtkInteractorStyle is independent of Qt or any 
other GUI toolkit used, and also gives you easier access to the camera 
if you need to manipulate it.

Clint

Giancarlo Amati wrote:
> Good morning everybody,
>
> I have my GUI build up in QT and an object of the class QVTKWidget as 
> a central object on my main window. Now,
> I'm trying to capture the button pressed event of the mouse accurring 
> in my qvtkwidget object but unfortunately I'm not able to do it.
> So, I wonder if I have to write my own class and derive it from the 
> QVTKWidget class and the rewriting its member for the mouse event 
> or...is there a way to capture the mouse event occurring in the 
> rendering window of VTK?
>
> Kind Regards.
> Giancarlo
>
> ------------------------------------------------------------------------
> Chiavette USB. addio! Attiva SkyDrive! 
> <http://clk.atdmt.com/GBL/go/136422321/direct/01/>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>   




More information about the vtkusers mailing list