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

落花浮王杯 提交于 2019-12-13 03:30:01

问题


I can't use any type of vtk 2D chart in QT without getting the error:
"Generic Warning: In vtkContextDevice2D.cxx, line 31 Error: no override found for 'vtkContextDevice2D".

There is limited discussion on this with almost all suggestions being to upgrade qt/vtk, but theses are year old and I am on the newest versions.

This doesn't help either:

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

Info: Win64 on 64bit machine, vtk8.2.0, Qt5.13.0, compiled/built in MCVS2017(Release x64) with cmake3.15.0
(Everything else works fine, even 3D renderings with vtk)

Code:

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

What the error produces

来源:https://stackoverflow.com/questions/56784556/vtk-charts-break-in-qt-no-override-found-for-vtkcontextdevice2d

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!