Hi, although mouse press events function as expected with QVTKInteractor, key press events are not being caught. Are there any working examples for QVTKInteractor?
QQuickVTKItem::vtkUserData MyVTKItem::initializeVTK(vtkRenderWindow* renderWindow) {
...
vtkNew<QVTKInteractor> renderWindowInteractor;
renderWindowInteractor->SetRenderWindow(renderWindow);
renderWindowInteractor->Initialize();
vtkNew<KeyPressInteractorStyle> style;
style->SetDefaultRenderer(renderer);
renderWindowInteractor->SetInteractorStyle(style);
renderWindowInteractor->Start();
The above is a partial code listing where I have used vtk-examples/Cxx/Interaction/KeypressEvents.
Thanks!