QAction *pCreateAction = pFileMenu->addMenu(pCreateMenu); connect(pOpenAction, SIGNAL(triggered()), this, SLOT(openFile()));