Please, can you give me some example?
action1 = new QAction(tr("&ACTION1"), this); action2 = new QAction(tr("&ACTION2"), this); menu = menuBar()->addMenu(tr("MENU TITLE")); menu->addAction(action1); menu->addAction(action2); connect(action1, SIGNAL(triggered()), this , SLOT(doAction1())); connect(action2, SIGNAL(triggered()), this , SLOT(doAction2()));