View Full Version : QGLWidget on another QGLWiget

23rd October 2006, 03:02
Hi, all

Here is my problem about mutlti-QGLWidget.

I want to draw large size of data on one QGLWidget (background) , while do some other things on another QGLWidget (foreground). By this way, the background scene will not repaint. That is, the foreground QGLWidget should be transparent and the two QGLWidget should be overlap which look like one.

Can anybody give some good advices for me? Or other way? Thanks in advance!!

23rd October 2006, 10:59
Eeeemm... this is a really unusual design :) If you modify the foreground, the background would still need to be repainted, otherwise some artifacts would be left. Why don't you try it with a single GLWidget? You can always render the background to a pixmap and then use that pixmap as a texture for your background. Of course it is a wacky way, I would rather do that the "regular" way.