Hello!
I’m wondering if it’s possible to implement a way to disable the Global Menu per app?
The Global Menu breaks a lot of functionality within some programs like Qalculate and Qt Widgets Designer
That might require a change in Qt, e.g. adding an support for reading an environment variable to not use the global menu even if its presence is detected.
I tried KDE_NO_GLOBAL_MENU=1
, but it only works for some programs, not all
For example it works with Qt Designer and Creator, but not with Qalculate
Maybe Qalculate is installed as a Flatpak, Snap or AppImage, or uses a different Qt version than Plasma.
In such cases it will not be able to load the KDE platform theme plugin and use the “generic unix” one.
Since the “generic unix” plugin has support for global menu for a while, we might see KDE specific code paths being dropped and the environment variable above no longer working at all.
However, it is likely not so difficult to get a similar mechanism upstream into Qt, just needs somebody willing to do it.
You could check if there is already a ticket for this on either https://bugs.kde.org or https://bugreports.qt.io/
And for what it’s worth, the resolution to QTCREATORBUG-29498 implies that the capacity to add that ability in an application was added to Qt Creator - but that sounds like it would need to be specifically included by an application developer, as opposed to being automatically available?
The way I read it is that this is just for the normal (main window) menu bar.
I think all KDE apps support CTRL+M
to hide it, not sure it works when global menu is used instead