C++ (Qt)QAction *newAction = fileMenu->addAction(tr("&New..."));
C++ (Qt)connect(newAction, SIGNAL(triggered()), this, SLOT(openDialog()));