0

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

andyfan
  • 31
  • 1
  • 4
  • How did you create a VTK application with CMake? How can we reproduce your problem? Which platform are you working on? Please think in generic terms such that your question serves the community and not just yourself. SO is not a service centre for debugging your problems. – normanius Oct 09 '18 at 08:59

1 Answers1

2

You should use QVTKOpenGLWidget instead.

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

VTK_LEGACY_SILENT:ON
Mathieu Westphal
  • 2,544
  • 1
  • 19
  • 33