[vtkusers] How to put Qt widgets on top of a VTK OpenGL scene
clinton at elemtech.com
clinton at elemtech.com
Tue Oct 21 13:20:35 EDT 2008
In a QGraphicsView, QGLWidget::paintEvent isn't called, which means QGLWidget
isn't doing some things for you.
Be sure you're calling glClear, glViewport, etc..
Clint
On Tuesday 21 October 2008 11:03:34 am Elvis Dowson wrote:
> Hi Clint,
> I was just wondering about why the
> QGraphicsScene::drawBackground method works with a QWidget and not a
> QGLWidget. There are possibly two OpenGL rendering contexts happening,
> one for the VTK off-screen rendered and the other for the QGLWidget
> renderer.
>
> So, do you think it has something to do with making the OpenGL
> rendering context current for the QGLWidget?
>
> Best regards,
>
> Elvis Dowson
More information about the vtkusers
mailing list