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

MacOS: QOpenGLWindow contained in QMainWindow flickers when being resized programmatically

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.4.1, 5.5.0 Beta
    • Fix Version/s: 5.10
    • Component/s: QPA
    • Environment:
      Qt 5.4.1, OS-X 10.9
    • Platform/s:
      macOS

      Description

      I have the following setup: a QOpenGLWindow is packaged into a widget via QWidget::createWindowContainer(), then put into a QMainWindow as a centralWidget. When grabbing the application window's corner and resizing it via the OS'es resize handles, everything is fine. When doing an explicit resize() call on the QMainWindow, however, flickering occurs.

      This used to work on 5.4.0 and seems to be broken since 5.4.1. Mac only.

      I've attached a minimal repro with the above architecture. If you run it and grab the window border to resize it, everything is fine. If you click + move in the red client area however, resize() is being called explicitly on the main window and this causes flickering (at least when shrinking the window)

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              woolfman007 Wolfgang Schneider
              Votes:
              8 Vote for this issue
              Watchers:
              11 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes