<div dir="ltr">Hi Clinton,<br><br>If you send the code to Prashant, and you can send to the list too, I think will be useful. At least to me.<br><br>Thks,<br><br>Wagner Sales<br><br><div class="gmail_quote">2008/8/28  <span dir="ltr">&lt;<a href="mailto:clinton@elemtech.com">clinton@elemtech.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
I would recommend implementing a QPaintEngine for the QVTKWidget, instead of<br>
what you&#39;re trying to do. &nbsp;Then it should simply be a matter of setting a<br>
QVTKWidget as the viewport of the QGraphicsView.<br>
<br>
I&#39;ve done some experimenting with a QPaintEngine for QVTKWidget before, but I<br>
haven&#39;t done enough to get something to commit into the repository. &nbsp;Do you<br>
want some of that code to play with too?<br>
<br>
Clint<br>
<div class="Ih2E3d"><br>
&gt; Hi All,<br>
&gt;<br>
&gt; This months Qt Quarterly magazine had an interesting article titled<br>
&gt; &quot;Accelerate your Widgets with OpenGL&quot;. The article explains a way for<br>
&gt; developers to use OpenGL viewports in QGraphicsView and layer widgets (any<br>
&gt; QWidget) as items (instances of QGraphicsProxyWidget) on top of 3D areas.<br>
&gt;<br>
&gt; [1]<br>
&gt; <a href="http://labs.trolltech.com/blogs/2008/06/27/accelerate-your-widgets-with-ope" target="_blank">http://labs.trolltech.com/blogs/2008/06/27/accelerate-your-widgets-with-ope</a><br>
</div>&gt;ngl/ [2]<br>
<div class="Ih2E3d">&gt; <a href="http://labs.trolltech.com/blogs/wp-content/uploads/2008/06/openglwidgets2.p" target="_blank">http://labs.trolltech.com/blogs/wp-content/uploads/2008/06/openglwidgets2.p</a><br>
&gt;ng<br>
&gt;<br>
&gt; Anyways, I was playing around with QVTKWidget, vtkQtRenderWindow and<br>
&gt; QGraphicsView. I thought it should be possible for us to create a subclass<br>
&gt; of QGraphicsView that would help render VTK scenes from within the<br>
&gt; drawBackground() method of QGraphicsView. I did give it a shot and I got<br>
&gt; some results, but its not exactly what I want. I am able to get 3D output<br>
&gt; on the viewport, but the items in the scene are not visible.<br>
&gt;<br>
&gt; Could anyone please help me with this?<br>
&gt;<br>
&gt; [3] Download the code I have so far from here:<br>
&gt; <a href="http://www.vcreatelogic.com/oss/VTKGraphicsView.zip" target="_blank">http://www.vcreatelogic.com/oss/VTKGraphicsView.zip</a><br>
&gt; &nbsp; &nbsp; &nbsp;* Note, I have only tested the code on Windows so far.<br>
&gt;<br>
&gt; Thanks and Warm Regards,<br>
&gt; Prashanth N Udupa<br>
<br>
<br>
</div>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>