Cannot interact with basic QT/VTK application

I have the following snippet which is correctly displaying a cone shape on screen, but I can’t interact with it, ie pan, rotate, zoom, etc. Should I expect it to be interactive?

import sys
import PySide2
from PySide2.QtWidgets import QApplication
from vtkmodules import vtkRenderingOpenGL2
from vtkmodules.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
from vtkmodules.vtkFiltersSources import vtkConeSource
from vtkmodules.vtkRenderingCore import vtkActor, vtkPolyDataMapper, vtkRenderer

app = QApplication(['QVTKRenderWindowInteractor'])

widget = QVTKRenderWindowInteractor()
widget.Initialize()
widget.Start()

ren = vtkRenderer()
widget.GetRenderWindow().AddRenderer(ren)

cone = vtkConeSource()
cone.SetResolution(8)

coneMapper = vtkPolyDataMapper()
coneMapper.SetInputConnection(cone.GetOutputPort())

coneActor = vtkActor()
coneActor.SetMapper(coneMapper)

ren.AddActor(coneActor)

widget.show()
app.exec_()

Thanks.

The problem vanishes if I add import vtk before the vtkmodules imports.

You probably just needed to import vtkmodules.vtkInteractorStyle or something. The vtk module imports all of VTK, so that solves the issue, but ends up bringing in much more than you actually needed to fix the problem (and it is much slower to import due to it bringing in so much).