Thanks Eric.<div><br></div><div>I ended up doing something like this</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkSmartPointer&lt;QVTKInteractor&gt; renderWindowInteractor = vtkSmartPointer&lt;QVTKInteractor&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>renderWindowInteractor-&gt;SetRenderWindow(<b>(vtkContextView)</b>-&gt;GetRenderWindow());</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>renderWindowInteractor-&gt;Initialize();</div>
<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span><b>(QVTKWidget)</b>-&gt;SetRenderWindow(<b>(vtkContextView)</b>-&gt;GetRenderWindow());</div><div><br></div><div>since QVTKWidget requires a QVTKInteractor as the Interactor. I created a new QVTKInteractor, attached it as vtkContextView&#39;s interactor, and then just set the renderwindow from context view into the qvtkwidget.</div>
<div><br></div><div>(BTW, thanks to the guys developing the new chart classes, they look very nice! Especially in Paraview!)</div><div><br></div><br><div class="gmail_quote">On Wed, Apr 21, 2010 at 12:11 PM, Eric E. Monson <span dir="ltr">&lt;<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<br>
<br>
As long as you are programming in C++ I think you can follow the examples in [vtksource]/Examples/Infovis/Cxx -- there they have things like EasyView that put a vtkGraphLayoutView into a QVTKWidget. I haven&#39;t tried this with the Charts specifically, but since vtkContextView is also a vtkRenderView, hopefully you can do the same thing:<br>

<br>
  // Graph View needs to get my render window<br>
  this-&gt;GraphView-&gt;SetInteractor(this-&gt;ui-&gt;vtkGraphViewWidget-&gt;GetInteractor());<br>
  this-&gt;ui-&gt;vtkGraphViewWidget-&gt;SetRenderWindow(this-&gt;GraphView-&gt;GetRenderWindow());<br>
<br>
(The reason I say that hopefully you&#39;re using C++ is that I can&#39;t get this to work with the Python wrappers and PyQt4...)<br>
<br>
-Eric<br>
<br>
------------------------------------------------------<br>
<font color="#888888">Eric E Monson<br>
Duke Visualization Technology Group<br>
</font><div class="im"><br>
<br>
On Apr 21, 2010, at 12:28 PM, da wrote:<br>
<br>
&gt; Hey everyone,<br>
&gt;<br>
&gt; I&#39;ve been playing around with the plotting functionality: first the older vtkQt* classes and now I&#39;m looking at VTK/Charts classes. It seems that vtkContextView is an entire &quot;view&quot; in itself. How would I get this embedded into a QWidget? I&#39;ve been using QVTKWidget previously but I don&#39;t think I can just put the renderer from the context view into the qvtkwidget?<br>

&gt;<br>
&gt;<br>
</div><div class="im">&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
</div><div class="im">&gt; Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
</div><div class="im">&gt; Follow this link to subscribe/unsubscribe:<br>
</div><div><div></div><div class="h5">&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
</div></div></blockquote></div><br></div>