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

        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