0

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.

enter image description here

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.

carl
  • 1
  • 1
  • Alternatives Adding a QOpenGLWidget into a window turns on OpenGL-based compositing for the entire window. In some special cases this may not be ideal, and the old QGLWidget-style behavior with a separate, native child window is desired. Desktop applications that understand the limitations of this approach (for example when it comes to overlaps, transparency, scroll views and MDI areas), can use QOpenGLWindow with QWidget::createWindowContainer(). – carl Dec 20 '22 at 23:39

0 Answers0