[vtkusers] TDx interactor and focus

Matt Spong mspong at gmail.com
Thu Oct 6 14:31:36 EDT 2011


For the benefit of future Googlers, the solution to this problem was
to override QVTKWidget::focusOutEvent and ::focusInEvent, and call:

GetInteractor()->StartListening()

...and...

GetInteractor()->StopListening()

... respectively, in addition to QVTKWidget's implementations.

Matt

On Oct 5, 2011, at 3:33 PM, mspong <mspong at gmail.com> wrote:

> Hi all,
>
> We're having some trouble with VTK's 3dconnexion support in a Qt
> application. We've derived a class from vtkTDxInteractorStyleCamera, and set
> an instance on the vtkInteractorStyle object with SetTDxStyle().
>
> It mostly works, except that the interactor only seems to work when the VTK
> widget has focus. What is the best way to make this work regardless of which
> widget has the focus?
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/TDx-interactor-and-focus-tp4873912p4873912.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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