Results 1 to 4 of 4

Thread: Pop up windows being corrupted by moving over QGLWIdget

  1. #1
    Join Date
    Jul 2009
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Pop up windows being corrupted by moving over QGLWIdget

    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..

  2. #2
    Join Date
    Jan 2006
    Location
    Frankfurt
    Posts
    500
    Thanks
    1
    Thanked 52 Times in 52 Posts
    Platforms
    MacOS X Unix/X11

    Default Re: QGLWidget question

    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.
    It's nice to be important but it's more important to be nice.

  3. #3
    Join Date
    Jul 2009
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: QGLWidget question

    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
    Attached Images Attached Images

  4. #4
    Join Date
    Jul 2009
    Posts
    28
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Re: QGLWidget question

    Uhm does anyone know whats happening above?

Similar Threads

  1. Replies: 1
    Last Post: 23rd April 2009, 09:05
  2. Replies: 5
    Last Post: 15th January 2009, 09:03
  3. other windows affecting depth buffer in QGLwidget
    By mullwaden in forum Qt Programming
    Replies: 0
    Last Post: 10th September 2008, 13:43
  4. QGLWidget and multiple windows
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 21st November 2006, 13:38

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.