Transparent QGLWidget on top of QGraphicsView
Posted
by
maciej.gryka
on Stack Overflow
See other posts from Stack Overflow
or by maciej.gryka
Published on 2011-01-06T14:34:19Z
Indexed on
2011/01/06
18:53 UTC
Read the original article
Hit count: 250
I'm using QGraphicsView
to show a 2D image and also have a separate QGLWidget
window to display some 3D object. I'm dynamically changing the image displayed in `QGraphicsView' based on the rotation of the 3D object.
I would like to render a semi-transparent 3D object on top of the 2D image, something like Maya 2009 used to do (notice the cube in the upper right corner of the viewport):
Is it possible to do this with my current widgets? If not, how could it be done?
One option I can think of would be to render everything in QGLWidget
and display the 2D image as a texture on a background plane, but that seems slightly painful.
© Stack Overflow or respective owner