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

painter has incorrect systemClip in QGraphicsEffect::paint

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.2
    • Fix Version/s: None
    • Component/s: Widgets: GraphicsView
    • Labels:
      None
    • Environment:
      Windows 10, MSVC2015
    • Platform/s:
      Windows

      Description

      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

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes