Hi, all
Is there any way to put a transparent QWidget (QPixmap, QGLWidget etc.) on a QGLWidget?
I have tried that transparent QWidget can be put on another QWidget except QGLWidget. Does Qt not surpported?
Hi, all
Is there any way to put a transparent QWidget (QPixmap, QGLWidget etc.) on a QGLWidget?
I have tried that transparent QWidget can be put on another QWidget except QGLWidget. Does Qt not surpported?
There is no secret in the face of the code.
Yes, there is (note that QPixmap is not a widget). But what for? If you want a pixmap on your glwidget, then just use overlays, just like one of Qt demo applications does.
In what way was it put "on" another widget? Could you show a code sample?I have tried that transparent QWidget can be put on another QWidget except QGLWidget. Does Qt not surpported?
The demo is about QPainter in a QGLWidget. I need an another(forground) QGLWidget or QGLContext which the background is transparent. Thus, one glwidget is used to draw some background graphics and the other one draw forground graphics, although they do not impact each other. The forground QGLWidget or QGLContext's graphics look like on the background widget.
Can you give me some good advice? Thanks for any replay!!
There is no secret in the face of the code.
Bookmarks