Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-56892

Using translucent colors for OpenGL drawings in MDI area causes weird visual effects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.7.0
    • GUI: OpenGL
    • None
    • MacOS X 10.11
    • macOS

      The attached example (opengl_transp_mdi.cpp) demonstrates an issue which is that when drawing OpenGL objects with transparency inside widgets that are inside an MDI area, weird artifacts are visible when moving around the windows. To reproduce, compile the attached code, then take one of the sub-windows and move it around: ghosts of other windows will be visible through the lines (I have attached a screenshot too).

      Note that this only happens if the main window/MDI area is shown before the sub-windows are added. In my application, I need to add the sub-windows on-the-fly, so this is why I need to do it this way.

        1. Screen Shot 2016-11-03 at 15.10.41.png
          321 kB
          trobitaille
        2. opengl_transp_mdi.cpp
          2 kB
          trobitaille
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sorvig Morten Sørvig
            trobitaille trobitaille
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes