-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.2.1
-
None
-
Ubuntu 16.04
This worked in previous commits, but now Alt+G seems to be ignored, leaving Alt+B to open the Build menu instead.
This widgets example works:
#include <QtWidgets>
void doStuff() {
qDebug() << "doing stuff";
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QMainWindow window;
QMenu *menu = new QMenu(&window);
menu->setTitle("Git");
menu->addAction(QLatin1String("Git Blame"), &doStuff, QKeySequence("Alt+G,Alt+B"));
menu->addAction(QLatin1String("Git Commit"), &doStuff, QKeySequence("Alt+G,Alt+C"));
window.menuBar()->addMenu(menu);
window.show();
return a.exec();
}