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

[REG:5.15.7->5.15.8]: repaint() on a widget makes QGraphicsOpacityEffect apply multiple times

    XMLWordPrintable

Details

    • Linux/X11, macOS, Windows
    • a382134a40 (qt/qtbase/dev) a382134a40 (qt/tqtc-qtbase/dev) 673cb7f011 (qt/tqtc-qtbase/5.15) e26af754af (qt/qtbase/6.3) e26af754af (qt/tqtc-qtbase/6.3) 673cb7f011 (qt/tqtc-qtbase/tqtc/vxworks-5.15.10) 673cb7f011 (qt/tqtc-qtbase/5.15.10_QtAS)

    Description

      When using a QGraphicsOpacityEffect on a widget (with for example opacity of 0.7), repainting the widget makes the graphics effect apply multiple times (enterEvent and leaveEvent repaints in the sample application). Disabling/Enabling the graphics effect resets this stacked graphics effect rendering (focusInEvent and focusOutEvent in the sample application).

      Attached videos about working (5.15.7) and non-working (5.15.8) situations.

      Attached sample application (based on Qt's MDI example) reproduces the issue, reproduce steps can be seen in the videos.

      Attachments

        1. 2022-03-31 11-41-30.mkv
          7.25 MB
          Juan Conejero
        2. qtbug102374_5_15_7_working.mkv
          2.57 MB
          Jussi Witick
        3. qtbug102374_5_15_8_broken.mkv
          4.15 MB
          Jussi Witick
        4. qtbug102374.zip
          24 kB
          Jussi Witick
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            anmaatta Antti Määttä
            jussi_witick Jussi Witick
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews