Vtk 图表在 QT 中中断,"no override found for 'vtkContextDevice2D"

Vtk charts break in QT, "no override found for 'vtkContextDevice2D"

我无法在 QT 中使用任何类型的 vtk 2D 图表而不会出现错误:
“一般警告:在 vtkContextDevice2D.cxx 中,第 31 行错误:未找到“vtkContextDevice2D”的覆盖。

关于此的讨论有限,几乎所有建议都是升级 qt/vtk,但这些已经有一年的历史了,我使用的是最新版本。

这也无济于事:

include "vtkAutoInit.h"   
VTK_MODULE_INIT(vtkRenderingOpenGL2); // VTK was built with vtkRenderingOpenGL2  
VTK_MODULE_INIT(vtkInteractionStyle);  

信息:64 位机器上的 Win64,vtk8.2.0,Qt5.13.0,compiled/built 在 MCVS2017(版本 x64)中使用 cmake3.15.0
(其他一切正常,甚至是使用 vtk 的 3D 渲染)

代码:

view->SetInteractor(this->qvtkWidgetRight->GetInteractor());  
this->qvtkWidgetRight->SetRenderWindow(view->GetRenderWindow());

What the error produces

我在 运行 这个例子中遇到了类似的问题:QtBarChart, and I fixed this issue with linking with these vtk libraries:

find_package(VTK COMPONENTS
  vtkChartsCore
  vtkCommonCore
  vtkCommonDataModel
  vtkInteractionStyle
  vtkRenderingContext2D
  vtkRenderingContextOpenGL2
  vtkRenderingCore
  vtkRenderingFreeType
  vtkRenderingGL2PSOpenGL2
  vtkRenderingOpenGL2
  vtkViewsContext2D
  QUIET

看来我错过了一些图书馆。