Shortcut Key don't work
-
Hi
i'm using Qt 5.7.1 & Ubuntu 16.10
I have menu bar & i add some actions into menu bar but shortcut keys don't work!
i test in windows & mac it work & in Ubuntu 16.10 don't work i have no problem with Qt 5.7.0 but in Qt 5.7.1 this problem is exist .
this is a bug in Qt?
how can i fix it? -
Hi @ARASHz4,
Would you mind posting some example code so we can better understand where your problem may be? -
@calebhalvy
I do this in designer.
I create a action & set a shortcut for this & added into menu bar but shortcut don't work in ubuntu -
Are you using Unity ?
Most likely it has an issue again :)Do the Creator shortcuts work?
-
@ARASHz4
It might be a bug. ( in Qt)
You could search in https://bugreports.qt.io -
@ARASHz4 said in Shortcut Key don't work:
@calebhalvy
I do this in designer.
I create a action & set a shortcut for this & added into menu bar but shortcut don't work in ubuntuso you tried 2 separate created test-cases?
If so this increases the chance that one has ambigious shortcuts defined.
In such a case an activatedAmbigiously() singal is triggered instead of activated() signal. Which doesn't trigger the shortcut, but gives you a chance to react to it instead.
Or QEvent::Shortcut/QEvent::ShortcutOverride, when using events. -
@ARASHz4 Someone in another thread has the same issue. I'm thinking it's probably a bug with qt 5.7.1 and linux. Or at least specific window managers in linux.
Update: Just tested it myself and for sure it's a bug in 5.7.1 with Linux. Please report it.
-
@ambershark I report this bug :
https://bugreports.qt.io/browse/QTBUG-57990