QMenu is not getting drawn when there is a child doing WA_PaintOnScreen n GNOME
-
Hello!
Over at SDL we’re currently working on adding a qt6 example showing how to integrate SDL3 in a qt application.
We have successfully made it work on macOS, Linux X11, and Wayland on KDE.
However, when using Qt6 on Wayland on GNOME, the QMenu is not getting drawn.Since the window decoration is drawn instead of the menu, we believe this might have something to do with Qt internals.
We would really appreciate it if somebody with knowledge of Qt internals would have a look at it and point at what we're doing wrong.Wayland on GNOME (broken, but functional menu):

X11 (functional reference):

-
Yes, it makes sense to assume that - on Gnome/Wayland Qt draws its' own window decorations while on most other Wayland desktops there are server-side decorations. Qt's built-in decoration plugins (bradient and adwaita) aren't the highest quality, since they are essentially intended only as a fallback.
I'll try to see if I can reproduce that. Which Qt version and distrobution is this?
-
My apologies for the late reply (I'm new here and assumed I would get a mail when somebody replied).
My system is Fedora 44, GNOME 50 and using qt6 6.11.1 (all from the distro packages).
@maarten said in QMenu is not getting drawn when there is a child doing WA_PaintOnScreen n GNOME:
(I'm new here and assumed I would get a mail when somebody replied).
Right side... you can specify what notifications you want to receive and how :))