Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-123816

The setSamples() method doesn't work on QOpenGLWidget for WebAssembly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.0
    • 6.7.0 Beta1
    • GUI: OpenGL
    • None
    • WebAssembly

    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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            evenandersen Even Oscar Andersen
            8observer8 Ivan Enzhaev
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h

                Gerrit Reviews

                  There are no open Gerrit changes