[vtkusers] QVTKWidget and keyboard event

Jothybasu Selvaraj jothybasu at gmail.com
Thu Nov 10 08:33:32 EST 2011


Have you set the interactor properly in the QVTKWidget?

Jothy

On 11/10/11, R M <mlokida at yahoo.fr> wrote:
> Hello,
>
> I have an application with QT widgets and a QVTKWidget.
>
> When I click on the QT widgets (focus one them) and then when I press a
> keyboard key in order to make a specific action on my QTVTKWidget, the
> pressed key is not detected by vtk.
> I have tried the setFocusPolicy with Qt::StrongFocus ont the QVTKWidget
> instance but with no success. I have also tried the activateWindow on the
> QVTKWidget instance when keyPressEvent is call on the QMainWindow.
>
> What should I do in order to detect the keyboard press event in vtk when I
> have no focus on my QVTKWidget ?
>
> Thank you.


-- 
Jothy



More information about the vtkusers mailing list