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. Global menu functionality
QtWS25 Last Chance

Global menu functionality

Scheduled Pinned Locked Moved Unsolved General and Desktop
global-menulinuxwidgetsgui
6 Posts 4 Posters 1.6k Views
  • 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.
  • P Offline
    P Offline
    Parsa Mousavi
    wrote on 15 Mar 2020, 17:19 last edited by
    #1

    Hi there.
    I want to know how does global menu functionality work in desktops like KDE and Unity in linux?
    I mean how does the desktop environment prevent the toolbar from being rendered in the window area in order to draw it somewhere else?
    Is there any special technique?
    Does the global menu widget need special protocols to communicate with the application and to retrieve its menus?
    Thanks.
    Best regards.

    P 1 Reply Last reply 15 Mar 2020, 17:44
    0
    • P Parsa Mousavi
      15 Mar 2020, 17:19

      Hi there.
      I want to know how does global menu functionality work in desktops like KDE and Unity in linux?
      I mean how does the desktop environment prevent the toolbar from being rendered in the window area in order to draw it somewhere else?
      Is there any special technique?
      Does the global menu widget need special protocols to communicate with the application and to retrieve its menus?
      Thanks.
      Best regards.

      P Offline
      P Offline
      Pl45m4
      wrote on 15 Mar 2020, 17:44 last edited by
      #2

      @Parsa-Mousavi

      Can you explain what you mean by "global menu"? Are you talking about QMenu or QMenuBar?


      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
      0
      • P Offline
        P Offline
        Parsa Mousavi
        wrote on 15 Mar 2020, 17:58 last edited by Parsa Mousavi
        #3

        @Pl45m4

        Yes.
        Screenshot

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 Mar 2020, 19:18 last edited by
          #4

          Hi,

          AFAIK, KDE currently does not have a global menu as macOS does.

          As for unity, it has been abandoned by Canonical.

          The desktop environment does not prevent anything to be drawn, the related window manager is responsible of the drawing.

          Beside that, yes there are low level protocols. You might want to check for example Wayland and the QtWayland module.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          P 1 Reply Last reply 16 Mar 2020, 05:35
          1
          • S Offline
            S Offline
            Sheppard
            wrote on 16 Mar 2020, 05:03 last edited by Sheppard
            #5

            As a continuation of our previous article about making Gnome Shell more like Unity by using the Unite extension, this article includes instructions for adding a global menu and a searchable menu HUD in Gnome Shell, by using the Gnome Global AppMenu extension myprepaidcenter

            1 Reply Last reply
            0
            • S SGaist
              15 Mar 2020, 19:18

              Hi,

              AFAIK, KDE currently does not have a global menu as macOS does.

              As for unity, it has been abandoned by Canonical.

              The desktop environment does not prevent anything to be drawn, the related window manager is responsible of the drawing.

              Beside that, yes there are low level protocols. You might want to check for example Wayland and the QtWayland module.

              P Offline
              P Offline
              Parsa Mousavi
              wrote on 16 Mar 2020, 05:35 last edited by Parsa Mousavi
              #6

              @SGaist
              It's not enabled by default but it's available as a widget that you can place on the panel.
              Please tell me if I'm wrong here:
              Each application is given an area in the framebuffer to do its drawings and WM place additional window borders , shadows , effects and some handles to control windows.
              But I wonder how can WM separate toolbars from the window ? Are toolbars placed on some queue or special buffer which is visible to WM and DE(to use with the global menu widget)?

              1 Reply Last reply
              0

              4/6

              15 Mar 2020, 19:18

              • Login

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