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

painter has incorrect systemClip in QGraphicsEffect::paint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.11.2
    • Widgets: GraphicsView
    • None
    • Windows 10, MSVC2015
    • Windows

      The bug scenario is a composite widget witch has been added to the QGraphcsScene of a QGraphicsView.
       -> bug-scenario-without-GraphicsEffect.png

      When setting a QGraphicsEffect (e.g ColorizeEffect) to a constituent widget the painting of the target widget is truncated or even disappears completely.
      Actually the target widget is reacting to mouse event within it's original area. Only the painting is truncated or missing.
       -> bug.png

      To my guess in QGraphicsEffect::paint the systemClip of the painter argument is not correct in this scenario. When turning the systemClip off the painting of the target widget is complete and has ColorizeEffect applied all over. But this is no proper workaround as it may paint outside of the scroll area of the QGraphicsView when narrowing the dialog.
      -> paint-without-systemClip.png

        1. bug.png
          5 kB
          Anton Reiter
        2. bug-scenario-without-GraphicsEffect.png
          6 kB
          Anton Reiter
        3. GraphicsEffectTest.zip
          4 kB
          Anton Reiter
        4. paint-without-systemClip.png
          6 kB
          Anton Reiter
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            bibr Andreas Aardal Hanssen
            reiteran Anton Reiter
            Votes:
            5 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes