QMenu *menu = new QMenu(_R("&Файл"), this); menuBar()->addMenu(menu);
QMenu *menu = new QMenu(_R("&Файл»"), this); menu->menuAction()->setShortcut(QKeySequence("Qt::ALT+A")); menuBar()->addMenu(menu);
QAction actionPrint = new QAction(QIcon(srcPath + "/fileprint.png"), tr("&Print..."), this);actionPrint ->setShortcut(QKeySequence::Print);
menu->menuAction()->setShortcut(QKeySequence::Print);