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)