I have an application with multiple qcustomplots, contained within qdockwidgets, and a qopenglwidget main window. The combination seems to result in severe flickering of the qopenglwidget window, whenever the qcustomplot is redrawn.

I am not enabling opengl in qcustomplot. On windows, the problem seems to be "fixed" by setting the Qt::AA_NativeWindows flag, at the expense of clunkier window movement. On mac, however, this does not fix it.

Anyone have any ideas or clues?