Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMenu is not getting drawn when there is a child doing WA_PaintOnScreen n GNOME
Qt 6.11 is out! See what's new in the release blog

QMenu is not getting drawn when there is a child doing WA_PaintOnScreen n GNOME

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 210 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maarten
    wrote last edited by
    #1

    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):
    qt6-sdl3-wayland.png

    X11 (functional reference):
    qt6-sdl3-x11.png

    1 Reply Last reply
    0
    • I Offline
      I Offline
      IgKh
      wrote last edited by
      #2

      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?

      1 Reply Last reply
      1
      • M Offline
        M Offline
        maarten
        wrote last edited by
        #3

        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).

        Pl45m4P 1 Reply Last reply
        0
        • M maarten

          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).

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote last edited by
          #4

          @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).

          • https://forum.qt.io/user/maarten/settings

          Right side... you can specify what notifications you want to receive and how :))


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          2

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved