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

OpenGL widget with winId in floating/maximized DockWidget causes corrupt rendering

    XMLWordPrintable

Details

    • Windows

    Description

      We need to get an OpenGL window handle in order to draw third party video content. We do have QDockWidgets (with our own TitleBar) to undock and maximize these widgets which are inside a grid layout. If the DockWidget is docked everything is fine, but if it is floating, we experience strange behaviour. We broke the issue down into a sample project with just a QDockWidget with maximize button and two widgets from the Qt OpenGL example '2DPainting'. See attached screenshots from docked/floating/maximized states of the DockWidget and its content.

      Attachments

        1. DockWidget_Docked.jpg
          27 kB
          Kay Thomaschk
        2. DockWidget_Floating.jpg
          21 kB
          Kay Thomaschk
        3. DockWidget_Maximized.jpg
          52 kB
          Kay Thomaschk
        4. glwidget.cpp
          3 kB
          Kay Thomaschk
        5. glwidget.h
          3 kB
          Kay Thomaschk
        6. gridtest.pro
          1 kB
          Kay Thomaschk
        7. helper.cpp
          4 kB
          Kay Thomaschk
        8. helper.h
          3 kB
          Kay Thomaschk
        9. main.cpp
          3 kB
          Kay Thomaschk
        10. main.h
          1 kB
          Kay Thomaschk
        11. mainwindow.ui
          1 kB
          Kay Thomaschk
        12. widget.cpp
          3 kB
          Kay Thomaschk
        13. widget.h
          3 kB
          Kay Thomaschk

        Issue Links

          Activity

            People

              lagocs Laszlo Agocs
              kthomaschk Kay Thomaschk
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: