Currently the documentation at
https://vtk.org/doc/nightly/html/classQVTKOpenGLNativeWidget.html
says “You can use QVTKOpenGLNativeWidget::copyToFormat
…”
In VTK 8.2.0, copyToFormat() is defined in QVTKOpenGLWindow.h.
However in VTK 9.3, I see no trace of copyToFormat() in any header file, other than comments.
Looks like this was removed during the breaking change to the Qt layer before VTK 9.0
If thing this sentence can just be removed, do you want to take care of it @whereismymoney ?
I would be happy to take care of removing the sentence, “You can use QVTKOpenGLNativeWidget::copyToFormat to obtain a QSurfaceFormat appropriate for a vtkRenderWindow.”
Should we provide an alternative way to “obtain a QSurfaceFormat appropriate for a vtkRenderWindow”?
Also, the sample code provided below this sentence works for VTK 8.2, but requires a minor edit for a current VTK build.
I dont think so.