Ctrl+[Key] Shortcuts Assigned in QtCreator Do Not Work

Bug #1313248 reported by Jason Stephenson
This bug report is a duplicate of:  Bug #1380702: No keyboards shortcuts in QT apps. Edit Remove
76
This bug affects 16 people
Affects Status Importance Assigned to Milestone
appmenu-qt5 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I recompiled one of my Qt applications tonight on Ubuntu 14.04. This application uses QActions that are are set up in the mainwindow.ui file. (I originally did this with QtDesigner some two year ago, but have updated the application for Qt 5 in the mean time.)

When appmenu-qt5 is installed, the Ctrl+[key] shortcuts of the actions on the main menubar do not work. If I remove appment-qt5, they do work as expected.

Oddly enough, the edit actions on the edit dialog do work, but they are disabled and enabled multiple times.

I tried disabling and enabling the actions on the main menubar in code which didn't help. I also tried assigning the short cut keys via code and that did not help.

I am using 14.04 LTS, appmenu-qt5 0.3.0+14.04.20140415-0ubuntu1, and the Qt program found at https://github.com/Dyrcona/omiquji

description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in appmenu-qt5 (Ubuntu):
status: New → Confirmed
Revision history for this message
Francois Trahan (francois-trahan) wrote :

Same here.

Any shortcut is actually broken (example: "F5", ALT-T).

Removing appmenu-qt5 does solve the problem, but I like having my menus in the title bar...

Software that can be compiled agains qt4 work as expected.

Revision history for this message
Dribald Robens (drobens) wrote :

Same here! *No* shortcut works (even F2) with appmenu-qt5 installed.

Revision history for this message
Alain A Servais (alain-a-servais) wrote :

Same here.

Removing appmenu-qt5 is not ideal, because the menu bar is no longer integrated in the desktop like with the other applications. I found a convenient workaround at http://stackoverflow.com/questions/23916623/qt5-doesnt-recognised-shortcuts-unless-actions-are-added-to-a-toolbar: just add the QAction returned by QMenu::addAction to the main window list of actions, using QWidget::addAction.

Revision history for this message
Andreas (andreas-weiden) wrote :

This bug is *still* not fixed.

This way qt5 applications, like texmaker, are almost not usable!

See for example
https://code.google.com/p/texmaker/issues/detail?id=1301
for this bug being reported for texmaker (which is wrong, it is a bug of the qt5 version shipped by ubuntu)

The only workaround for this (from the user perspective, not the app developer perspective ) seems to be to recompile qt5. This should not be the default solution for this problem!

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello everyone,

I will mark this bug as a duplicate of another one (a newer one actually) since that one is more 'generic'. It's an issue with appmenu-qt5 and Qt5... more details in bug #1380702.

Revision history for this message
Anatoli (anatoli) wrote :

Łukasz, please also check bug #1574699, looks like they are all related.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.