Created
May 4, 2011 19:10
-
-
Save xenophy/955812 to your computer and use it in GitHub Desktop.
Mac OS X, Append Application Menu.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QAction* quitAction = new QAction(tr("終了(&Q)"), this); | |
connect(quitAction, SIGNAL(triggered()), this, SLOT(close())); | |
quitAction->setMenuRole(QAction::ApplicationSpecificRole); | |
QMenu* fileMenu = this->menuBar()->addMenu(tr("ファイル(&F)")); | |
fileMenu->addSeparator(); | |
fileMenu->addAction(quitAction); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment