So I have to create one Widget and I have to setMenu for that widget.
then I have to extract the actions() right?

QMenu *menu = actions->menu();
QToolButton *tool = new QToolButton;
tool->setMenu(menu);
QList<QAction *> list = tool->actions();


is this correct way . . .. ??