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

MacOS: QOpenGLWindow contained in QMainWindow flickers when being resized programmatically

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.10
    • 5.4.1, 5.5.0 Beta
    • QPA
    • Qt 5.4.1, OS-X 10.9
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes