QwtPlotOpenGLCanvas window disappear/reappear
Brought to you by:
rathmann
I noticed after upgrading to Qt6.4 from Qt5.12 that the first time you set a QwtPlotOpenGLCanvas to a plot, the window the plot lives in hides then shows. You can see this behavior in the refreshtest example, when you click the OpenGL checkbox the entire refreshtest window will disappear and reappear, after that you can check and uncheck the OpenGL box and it will work as expected.
Anonymous
i have noticed the same thing when using a QOpenGLWidget derived widget as well. reproduceable on linux and windows using Qt 6.4.0
I can confirm the same on my box - actually it happens always, when setting an QWidget as parent for an QOpenGLWidget. Should be an Qt issue - unrelated to Qwt.
When debugging I can see that QWidget::create ( the QOpenGLWidget ) indeed finally ends up creating a new XCB window. I will see if I can find a workaround and/or create a bug report for Qt.
See https://bugreports.qt.io/browse/QTBUG-109462