[vtkusers] QVTKWidget and keyboard event
R M
mlokida at yahoo.fr
Thu Nov 10 08:28:19 EST 2011
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111110/06564dd6/attachment.htm>
More information about the vtkusers
mailing list