I am developing application with QT5.11 and VTK8.2. There are 2 sub windows in the qmdiarea. Each of the windows has a QOpenGLWidget. First it behaves very well.
When I try to scroll the mdi area, one of the window becomes black. enter image description here
I have spent a lot of time on it. However there is no progress. Can someone give me some tip about the issue? Any help is appreciate. Thanks
I have done a lot of research about the issue. First I suspect that the margin of the layout which holds the widget is not set 0. But it's the cause because the issue is still there even after I set the margin to 0. Then I search about the QOpenGLWidget and did some research about QOffscreenSurface and QSurfaceFormat. But I feel very frustrated because I can't figure out what causes the issue.