<div dir="ltr">Hi,<br><br><br><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I agree as well. Its the QGraphicsScene::drawBackground that should do the<br>
equivalent of QGLWidget::paintGL(). </blockquote></div><div><br><br>Thats right. Infact QGraphicsScene::drawBackground() is called from within QGraphicsView::drawBackground().
So if we implement the latter, the former may never really be used.
Either way drawing needs to be done in a drawBackground() method.<br>
<br><br></div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">See the source attached. Where it uses a subclass of QVTKWidget as the<br>
viewport of the QGraphicsView. Its not perfect, but its probably a good<br>
start. For now, it just paints a QPixmap into the viewport with a VTK scene.</blockquote></div><br><br>Very
cool stuff.. A completely new technique this.. never thought of it...
This gives me some food for thought, will get back if I get more
results / hit road blocks.<br>
<br>Thanks and Regards,<br>Prashanth<br></div>