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

Unwanted QOpenGLWidget updates when docking a widget into same main window

    XMLWordPrintable

Details

    • 5c7f000cd4c9e3769e8cd4085cf0beee104f9886

    Description

      We have a QMainWindow with QMDIArea as a central widget, and the MDI Area contains QOpenGLWidget subwindow. The QMainWindow has also a dock widget. Now, the QOpenGLWidget is unnecessarily repainted several times when the dock widget is docked or undocked. Also, an unnecessary repaint happens when the status bar of QMainWindow is updated.

      These repaints don't happen if we use (obsolete) QGLWidget instead. And I was told this is not reproducible on OS X.

      See the attached example. Simply dock and undock the dock widget (located at the bottom) and the debug output is flooded with the QOpenGLWidget::paintEvent() calls.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              lagocs Laszlo Agocs
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes