Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
No action shortcut is shown on non-menubar menus with Qt 5.10 #1426
Comments
|
Ah, found the son of a... This was the silliest change in Qt ever! Under case QPlatformTheme::ShowShortcutsInContextMenus:
return QVariant(true);The ridiculous thing is that EDIT: See http://doc.qt.io/qt-5/qstylehints.html#showShortcutsInContextMenus-prop. |
Fixes lxqt/lxqt#1426. ShowShortcutsInContextMenus is false by default and, contrary to it name, it isn't just about context menus.
|
Off topic but related: Quoting the commit message of https://codereview.qt-project.org/#/c/141647/: "... Windows and GNOME desktop environments almost never use them. Only KDE appears to do so commonly; default accordingly." IMO, in the long run, it won't be good if Qt devs think that it's enough to consider only Gnome and KDE on Linux. |
As the title says: With Qt 5.10, action shortcuts aren't shown on menus anymore, unless they are menubar menus. For example, if the menubar of pcmanfm-qt is hidden, there are no action shortcuts on menus of the menu-button. Or if the view of Kate/FeatherPad/Qt Creator is right clicked, no shortcut is shown on the context menu.
Apparently, it makes no difference whether the Qt5 app is recompiled against Qt 5.10 or not.
And why did I report this here? Because it doesn't happen under KDE!! I have no idea about the cause of this magic.