Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.7.0 Beta1
-
None
Description
The setSamples() method doesn't work on QOpenGLWidget for WebAssembly:
QSurfaceFormat surfaceFormat; // surfaceFormat.setDepthBufferSize(24); // Doesn't work on QOpenGLWidget for WebAssembly surfaceFormat.setSamples(4); // Doesn't work on QOpenGLWidget for WebAssembly setFormat(surfaceFormat);
Compare the same examples on QOpenGLWidget and QOpenGLWindow. This is QOpenGLWidget: https://6604427c5c350c16aa4551c3--clinquant-pastelito-7b506b.netlify.app/ I attached this example. GitHub: https://github.com/8Observer8/load-3d-models-dae-openglwidget-opengles2-qt6-cpp
This is QOpenGLWindow: https://chic-pasca-73d8ca.netlify.app/ GitHub: https://github.com/8Observer8/load-3d-models-dae-openglwidget-opengles2-qt6-cpp
I had the next problem with the depth buffer on QOpenGLWidget: https://bugreports.qt.io/browse/QTBUG-123787