andyfan
andyfan

Reputation: 29

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

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

Upvotes: -1

Views: 3354

Answers (1)

Mathieu Westphal
Mathieu Westphal

Reputation: 2633

You should use QVTKOpenGLWidget instead.

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

VTK_LEGACY_SILENT:ON

Upvotes: 2

Related Questions