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

REG 4.X->5.X [Windows] Widgets with drop shadow are not repainted in a frameless window

    XMLWordPrintable

Details

    • b6503d17955520fc4d4c598993ffe8a94b7fa20f (qtbase/5.6, 14.12.2015, 5.6)

    Description

      There is a frameless window (Qt::FramelessWindowHint), which is hidden and shown when needed. When a QGraphicsDropShadowEffect is set to the window, the widgets in it are not updated when the window is hidden and shown again. Both Qt::FramelessWindowHint and QGraphicsDropShadowEffect are needed to reproduce the problem.

      If you hover a mouse over the non-updated widgets, a repaint is triggered. Also when show() is called while the window is shown, the update happens as expected.

      Reproducible on Windows 7, but not on Linux (Ubuntu 14.04).

      The attached example can be used to reproduce. There is a key event counter, which is shown in 3 widgets in a window when space key is pressed. Now, press some keys in the main window and then 'space', the widgets in the popup window show correct number. Repeat random key presses and 'space', and now the widgets are not updated. Hover over the widgets or press 'space' again, and the counters are updated.

      Attachments

        1. 0001-Windows-backing-store-Clamp-region-to-0-0.patch
          1 kB
        2. qtbug49785_4_log.txt
          5 kB
        3. qtbug49785_5_log.txt
          42 kB
        4. qtbug49785_bs_coord_diag4.diff
          1 kB
        5. qtbug49785_bs_coord_diag5.diff
          10 kB
        6. qtbug49785_bs_log.txt
          56 kB
        7. qtbug49785_diag_4.diff
          2 kB
        8. qtbug49785_diag_5.diff
          3 kB
        9. qtbug49785_simple_diag.diff
          0.4 kB
        10. qtbug49785.zip
          2 kB
        11. qtbug49785.zip
          1 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-49785
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes