I tried now for 2 hours creating a simple chart with vtk without any success. It just does not render anything and I cannot call the view->getRenderer()->render () function. It results in an exception.
What I understood so far is:
vtkContextView* view = vtkContextView::New ();
QVTKWidget* widget = new QVTKWidget ();
widget->setRenderWindow (view->getRenderWindow ());
After creating chart and adding it... view->getRenderer ()->render ();
I'm using vtk 7.1, qt 5.7 with vs15.
I also tried to find a full example in the Internet but I haven't found any complete.
Could someone show an example of how to create such a vtk chart with qt?