E' necessario creare una sottoclasse di QVTKWidget aggiungendo nel costruttore:
QSurfaceFormat surfaceFormat = windowHandle()->format(); surfaceFormat.setStencilBufferSize(8); windowHandle()->setFormat(surfaceFormat);