PDA

View Full Version : Pop up windows being corrupted by moving over QGLWIdget



John82
18th August 2009, 07:27
I am facing an odd problem. Whenever I move a window ( dialog / dock widget ) over a QGLWidget, my window gets blurred with drawing from the QGLWidget. The popup window gets repainted only if I click on the QGLWidget. Does anyone have an idea on what the problem is?

Sorry if I am missing something simple..

axeljaeger
18th August 2009, 22:20
Are you using rendering to texture?

I guess it has something to do with "direct rendering" in the GL-widget that bypasses clipping from the operating system. What operating system do you use? I think it is something heavily plattform dependant.

John82
20th August 2009, 08:45
Hi

Sorry for the late reply. I am not rendering textures at the moment, just a simple draw. To make it simple, I have attached two snapshots "Before.png" and "After.png".

Heres what happens :
1. The main graphics window is loaded initially drawing a simple red cube.
2. Then I launch a pop up dialog which has another graphics window drawing the same cube. It looks fine. This is the image file "Before.png".
3. Here is the problem now : When I drag this pop up window around a few times, it seems to get the color from the background and really screws up the window. After dragging the window around, I click on the window to see if it refreshes but it still remains like the image in "After.png". If I click on the main graphics window in the back ground, it refreshes the pop up window and it looks fine.

I am assuming that this is some refresh problem that I am not addressing right. Does anyone have any ideas? Also, I have noticed this behavior on other pop up windows like a floating dockwidget ( which does not have any graphics just a button ) over the graphics window.

Thanks

John82
24th August 2009, 14:41
Uhm does anyone know whats happening above?