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

Filling via QOpenGLFramebufferObject creates incorrect filling with QPainterPath

    XMLWordPrintable

Details

    Description

      I use the example attached. To go around the RHI in Qt 6, I force OpenGL and switch from QQuickPaintedItem to QQuickFramebufferObject (then in the render() function open a QPainter with the help of QOpenGLPaintDevice).

      This is done when NO_RHI is set to true is the CMakeLists.txt.
      The issue is that the fill cover the whole area:

      When I switch back to the QQuickPaintedItem approach (NO_RHI is false in the CMakeLists.txt) painted is what I expect:

      Attachments

        1. image-2024-06-06-13-53-29-042.png
          47 kB
          Pierre Jaouen
        2. image-2024-06-06-13-55-17-282.png
          42 kB
          Pierre Jaouen
        3. NoRHIExample.zip
          5 kB
          Pierre Jaouen
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            pijaouen Pierre Jaouen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes