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

Widget fails to repaint after reattaching on Wayland

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.7.2
    • GUI: Other, QPA: Wayland
    • None
    • Fedora 40, Qt 6.7.2
    • Linux/Wayland

    Description

      On wayland, detaching and reattaching a central widget later on, eg, with QMainWindow::takeCentralWidget(); causes said widget to have troubles repainting, leading to severe rendering artefacts, as can be seen below:

      2024-07-19 15-37-10.mkv

      This issue only happens on Wayland (tested on KDE and GNOME), and the surface seems to refresh just fine on Windows, macOS and Xorg.
      The bug persists even when making sure the item is visible, in focus and enabled and even when deleting and recreating the QWidget manually.

      This can be reproduced with any build of PCSX2 running under wayland (not XWayland), booting any game then going back to the file list.
      As the UI is quite complex, I'm not sure I could make a smaller reproducible test case, but I'm willing to debug as much as needed.

      You will find attached a log of Wayland-debug, listing all surfaces interactions until the bug occurence:

      wayland-trace.log

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            govanify Gauvain Roussel-Tarbouriech
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes