[vtkusers] vtkChart in QVTKWidget

Jothy jothybasu at gmail.com
Fri Aug 12 06:05:24 EDT 2011


Hi all,

I am trying to plot a 2D XY line plot using vtkChartXY by following this
example http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot.

I can render using vtkRenderer and vtkRenderWindow, but I can't get it
rendered in a QVTKWidget. How to link these two?

I tried using
QVTkWidget->GetRenderWindow()->AddRenderer(vtkContextView->GetRenderer()).

Any suggestions?

Thanks

Jothy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110812/fba1252b/attachment.htm>


More information about the vtkusers mailing list