I currently have a Qt MainWindow
, which holds a number of controls including a QVTKWidget
. I can easily add a vtkChartXY
object using a vtkContextView
to the QVTKWidget
:
vtkSmartPointer<vtkContextView> m_2Dview = vtkSmartPointer<vtkContextView>::New();
m_2Dview->SetRenderWindow(this->QVTKWidget->GetRenderWindow());
However, once I have it in the QVTKWidget
, I can not find a way to return to the 3d view. I tried using the vtkContextActor
, but it led to interaction issues. However, I'm willing to try out any suggestions if the vtkContextActor
is the way to go.