I see VTK has changed it’s Qt integration. I’m confused about how to create a multiple widget (e.g. 4 up ) medical imaging windows. Do I have 1 vtkGenericOpenGLRenderWindow shared between multiple QVTKOpenGLNativeWidgets?
I have my own Qt app with two QVTKOpenGLNativeWidgets and a splitter between them. I add a sphere (based on Bill Lorenson’s QVTKOpenGLNativeWidgets example) and nothing draws?
Anyone have a multi viewport example?
Thanks
Rick
You cannot share vtkGenericOpenGLRenderWindow
instances between two QVTKOpenGLNativeWidgets
. All rendering objects in VTK cannot be shared in general. You’ll need to create different vtkGenericOpenGLRenderWindow
instances for each of the vtkGenericOpenGLRenderWindow
instances. You can use the same vtkSphereSource, but will need different mapper, actor and renderer for each of the vtkGenericOpenGLRenderWindow
s.
Thanks for the info!
I was able to get my views to work – I simply had to add ->show() to the
`QVTKOpenGLNativeWidgets :>}```
``
`Thanks```
``
`Rick```