Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
6.7.2
-
None
-
Fedora 40, Qt 6.7.2
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:
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: