QVTKWidget was deprecated for VTK 8.1 and will be removed in a future version

3.1k Views Asked by At

When i create a qt gui vtk application by Cmake,then i run it with vs 2017.It appears fllowing warning.Any counld tell me how could i cancel this warning?Thank you a lot.enter image description here

1

There are 1 best solutions below

0
On

You should use QVTKOpenGLWidget instead.

You can disable deprecation warning if absolutely needed by setting the cmake variable :

VTK_LEGACY_SILENT:ON