Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
6.7.0 Beta1
-
None
Description
I have written the next example: https://github.com/8Observer8/load-3d-models-dae-openglwindow-opengles2-qt6-cpp that draws 3D models on QOpenGLWindow without the problem: https://6602ec1abe3c4d529f4f5c7a--chic-pasca-73d8ca.netlify.app/
But when I change QOpenGLWindow with QOpenGLWidget (I attached an example for QOpenGLWidget) I see this problem: https://clinquant-pastelito-7b506b.netlify.app/
I had the same issue for QOpenGLWindow: https://bugreports.qt.io/browse/QTBUG-122145
But it was solved by setting the depth buffer size to 24:
QSurfaceFormat surfaceFormat; surfaceFormat.setDepthBufferSize(24); surfaceFormat.setSamples(4); setFormat(surfaceFormat);