Is there a better solution?
QVTKOpenGLNativeWidget supports rendering volumes with vtkSmartVolumeMapper. See SmartVolumeMapper example for an example usage of vtkSmartVolumeMapper
.
The only difference would be the render window. Use vtkGenericOpenGLRenderWindow
and set it to the widget via QVTKOpenGLNativeWidget::setRenderWindow
.